Home All Groups Group Topic Archive Search About

How to change the timeout value

Author
22 Dec 2005 1:40 PM
ad
The default of timeout value of session is 20 min.
How can I change the value in program?

Author
22 Dec 2005 1:55 PM
Mitkip
Use the timeout property of your SessionState into web.config :

<configuration>
   ...
     <SessionState ... timeout="20" .../>
   ...
</configuration>
Are all your drivers up to date? click for free checkup

Author
22 Dec 2005 2:34 PM
Karl Seguin
I think he meant programatically.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


Show quoteHide quote
"Mitkip" <mit***@gmail.com> wrote in message
news:1135259727.724150.76010@f14g2000cwb.googlegroups.com...
> Use the timeout property of your SessionState into web.config :
>
> <configuration>
>   ...
>     <SessionState ... timeout="20" .../>
>   ...
> </configuration>
>
Author
22 Dec 2005 2:42 PM
Mitkip
Sure but I don't think changing this type of information
programmatically is the best way ...
But it depends what's his goal
Author
22 Dec 2005 3:02 PM
Karl Seguin
Agreed.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


Show quoteHide quote
"Mitkip" <mit***@gmail.com> wrote in message
news:1135262540.496524.244350@f14g2000cwb.googlegroups.com...
> Sure but I don't think changing this type of information
> programmatically is the best way ...
> But it depends what's his goal
>
Author
22 Dec 2005 8:29 PM
ad
Thanks,
I want to set different values to different users when the usrs login in.
How can I do that?


"Mitkip" <mit***@gmail.com>
???????:1135262540.496524.244***@f14g2000cwb.googlegroups.com...
Show quoteHide quote
> Sure but I don't think changing this type of information
> programmatically is the best way ...
> But it depends what's his goal
>
Author
23 Dec 2005 10:48 AM
Mitkip
By changing the Session.TimeOut value into your code, see Karl Seguin :

"Session.TimeOut is a read/write property.

Karl "
Author
22 Dec 2005 1:56 PM
Karl Seguin
Session.TimeOut is a read/write property.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


Show quoteHide quote
"ad" <fly***@wfes.tcc.edu.tw> wrote in message
news:OdmtO1vBGHA.1288@TK2MSFTNGP09.phx.gbl...
> The default of timeout value of session is 20 min.
> How can I change the value in program?
>

Bookmark and Share