473,320 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Avoiding session activity?

I have a web page which is periodically refreshing itself with data from the
server. However I dont want this activity to counted towards the session's
"activity counter" i.e. if a user does nothing on the page for 20 mins then I
want the session to time out even though the page has been refreshing itself
in the background.

Any ideas?
Nov 18 '05 #1
3 1193
check timeout in your web.config fille
"RUSSELL MCGINNIS" <RU*************@discussions.microsoft.com> wrote in
message news:4F**********************************@microsof t.com...
I have a web page which is periodically refreshing itself with data from the server. However I dont want this activity to counted towards the session's
"activity counter" i.e. if a user does nothing on the page for 20 mins then I want the session to time out even though the page has been refreshing itself in the background.

Any ideas?

Nov 18 '05 #2
It seems that you want to override behaviour of a session object...
Look into Session and Authenticate events in Global.asax file, maybe you
could provide your session expiration logic there. Also you might want to
invistigate custom HTTP handlers modules.

"RUSSELL MCGINNIS" wrote:
I have a web page which is periodically refreshing itself with data from the
server. However I dont want this activity to counted towards the session's
"activity counter" i.e. if a user does nothing on the page for 20 mins then I
want the session to time out even though the page has been refreshing itself
in the background.

Any ideas?

Nov 18 '05 #3
If you are using session variables to populate the page on each refresh it
makes it a bit hard (as each refresh will access the session vars). You will
need someway to distinguish between an automated refresh via the client side
timer, and actual activity. You'll probably need to make sure that session
is not used to populate the page, or that session is used on inital load and
the "refresh" is done really as a postback with a special argument, and
viewstate is used to maintain the screen state.

--
- Paul Glavich
Microsoft MVP - ASP.NET
"RUSSELL MCGINNIS" <RU*************@discussions.microsoft.com> wrote in
message news:4F**********************************@microsof t.com...
I have a web page which is periodically refreshing itself with data from the server. However I dont want this activity to counted towards the session's
"activity counter" i.e. if a user does nothing on the page for 20 mins then I want the session to time out even though the page has been refreshing itself in the background.

Any ideas?

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: jarret.austin | last post by:
Hi all I'm trying to set my sessions to be deleted after 60 seconds of inactivity (for testing), however they seem to be deleted after 60 seconds regardless of activity. I have the following...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
8
by: Steve Letford | last post by:
Hi, I've just read the ms KB article on how sessions can die because of the underscore in the machine name and don't think that it applies to me. I've tried using the IP address of the server and...
2
by: brian | last post by:
I have my session timeout at 20 minutes. Is there a way to set session time per variable. For instance: I create session("TEST") and I want it to expire in 2 minutes of no activity...Is that...
7
by: Christina N | last post by:
I want to output a list of all active SessionID's and their last time of activity. Can I loop through the active sessions and create a list like that? I use ASP.Net (VB.Net) Best regards,...
1
by: twscott | last post by:
I will be posting information to another application from my applicatio and redirecting to that application which will load into anothe iteration of IE. The user may spend a significant amount of...
2
by: Ben Fidge | last post by:
Are IIS session ID's guaranteed to be unique forever, like GUID's. Ie, would it be safe to assume that a session ID is not ever going to be used again or recycled? I want to track user activity on...
2
by: =?Utf-8?B?YW5vb3A=?= | last post by:
Hello, I am developing a Simple ASP Application with a Login page. I want to know how session ID can be generated after User has authenticated instead of generation along with the Login page...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a site which I secure with forms authentication. When the user's sign on and hit one of the secure pages, I have this line in my code to ensure that the browser does not cache the page;...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.