Session timeout

A

Annie

hi guys,

I was just wondering if we can override the session timeout for some of
the pages in a web application as defined in the web config?

let is say i have a group of pages A, b, c, d that are only related to
each other and I don't want their session to be expired in 20 min as
set in config file.

is session.timeout sometihng that can help?

any other solutions?
 
J

John Timney \(MVP\)

You can override using Session.Timeout in code though Session timeout is
session wide, so if you change it you affect the users session for all pages
until you change it back.

You might be better off working out a way of touching the server for the
page where you need an extended timeout period, so the session remains
active in an extended state for just those pages - with the default session
actually remaining active.

Have a read of this, its a very easy solutuion adn would convert to a very
easy control to drop into pages where an extended period was needed.
http://www.codeproject.com/aspnet/Reconnect.asp

You could also consider turning session state off for those pages using the
EnableSessionState page directive.
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Re session setting for some pages 0
Session Timeout 1
Forms timeout, Session timeout 0
Session Timeout 13
ASP.Net Session Timeout? 3
Session timeout 2
Session Timeout 4
Session Timeout 4

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,108
Latest member
AlbertEste
Top