468,249 Members | 1,513 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,249 developers. It's quick & easy.

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 1077
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 kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.