How to change the timeout value

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

The default of timeout value of session is 20 min.
How can I change the value in program?
 
Use the timeout property of your SessionState into web.config :

<configuration>
...
<SessionState ... timeout="20" .../>
...
</configuration>
 
Sure but I don't think changing this type of information
programmatically is the best way ...
But it depends what's his goal
 
Thanks,
I want to set different values to different users when the usrs login in.
How can I do that?
 
By changing the Session.TimeOut value into your code, see Karl Seguin :

"Session.TimeOut is a read/write property.

Karl "
 

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

Back
Top