re:
>I don't know that you can dynamically set the session TimeOut value for
each session - that is a machine.config or web.config variable...
You can...
Sub Page_Load(Sender As Object, E As EventArgs)
Session.Timeout = 30
End Sub
That will set the session timeout to 30 minutes, even if it's set to 20 minutes in web.config.
..
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"Greg9Strat" <gr********@gmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.com...
>I don't know that you can dynamically set the session TimeOut value for
each session - that is a machine.config or web.config variable...
Am I to understand you correctly that you want to be able to destroy
the session variables after the TimeOut period passes, but keep the
session alive?
Thanks for clarification...
On Nov 27, 11:20 am, "metsie" <lamees.af...@dashsoft.comwrote:
>Hi all,
How can I set the session TimeOut from inside the Code? Also is there a
way to make the session variables Expires after a number of minutes of
inactivity. i.e. I want to make the session variables expires after the
user stays inactive for 20 minutes. I am using ASP.net 2.
Thanks in advance