How to change the timeout value

A

ad

The default of timeout value of session is 20 min.
How can I change the value in program?
 
M

Mitkip

Use the timeout property of your SessionState into web.config :

<configuration>
...
<SessionState ... timeout="20" .../>
...
</configuration>
 
M

Mitkip

Sure but I don't think changing this type of information
programmatically is the best way ...
But it depends what's his goal
 
A

ad

Thanks,
I want to set different values to different users when the usrs login in.
How can I do that?
 
M

Mitkip

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top