471,073 Members | 1,419 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 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 1137
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by jarret.austin | last post: by
8 posts views Thread by Steve Letford | last post: by
2 posts views Thread by brian | last post: by
7 posts views Thread by Christina N | last post: by
1 post views Thread by twscott | last post: by
2 posts views Thread by Ben Fidge | last post: by
2 posts views Thread by =?Utf-8?B?YW5vb3A=?= | last post: by
5 posts views Thread by =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post: by
reply views Thread by leo001 | last post: by

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.