Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
chriskhan2000
Aged Yak Warrior
544 Posts |
Posted - 2005-04-01 : 11:01:33
|
I want to set a session time out in my asp.net pages to a certain amount of time. Where would I set it?I got this syntax so not sure if it's right.Session.Timeout = 10 Meaning in about 10 minute sesseion time out. Not sure exactly where to put that in my asp.net page. Can anyone advise? |
|
rfrancisco
Yak Posting Veteran
95 Posts |
Posted - 2005-04-01 : 11:41:12
|
If you want the session to time-out in 10 minutes you can set this value in the web.config file. Look for the sessionState in the web.config file and you will find a timeout setting there which by default is set to 20. |
 |
|
chriskhan2000
Aged Yak Warrior
544 Posts |
Posted - 2005-04-01 : 12:33:36
|
Thanks. Is it possible to set it never to expire? |
 |
|
DustinMichaels
Constraint Violating Yak Guru
464 Posts |
Posted - 2005-04-01 : 14:26:44
|
You cannot set it to never expire because the server may need to reclaim the memory used in the session. If you are worried about the session timing out you may want to look into using cookies to store user specific information.Dustin Michaels |
 |
|
jhermiz
3564 Posts |
Posted - 2005-04-01 : 14:35:52
|
Also the higher that value is the bigger the load is on the server, so don't set it to high. BTW: if you are timing out way too much it could be because a developer is compiling or working on a system that is already in production. In your development environment have you seperated prod vs. dev ? Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]Imperfection living for perfection -- [url]http://jhermiz.blogspot.com/[/url] |
 |
|
olay80
Yak Posting Veteran
62 Posts |
Posted - 2005-04-03 : 06:42:13
|
hey,all what u have said guys is right, but what about passing session between projects within the same application?? i can use the session in the project that i created in but i can use it in another project(same application). don't want to deal with coockies...Oliver |
 |
|
|
|
|