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 |
sql_lover
Starting Member
14 Posts |
Posted - 2007-04-18 : 03:12:42
|
i hv set session timeout to 20 minutes<add key="connectionstring" value="user id=sa;pwd=admin;data source=SERVER;packet size=4096;persist security info=false;initial catalog=Institute Mgt;Connect Timeout=20"></add>but i session expires too oftenwhat should i do keep my session alive for longer timepls help me as soon as possible |
|
snSQL
Master Smack Fu Yak Hacker
1837 Posts |
Posted - 2007-04-18 : 11:05:26
|
Have you considered setting it to a a number higher than 20? |
|
|
jhermiz
3564 Posts |
Posted - 2007-04-18 : 13:07:41
|
How are you using session variable?Are you setting the session in a specific part that is causing the problem. Can you post examples.Programmers HowTo's -- [url]http://jhermiz.googlepages.com[/url] |
|
|
sshelper
Posting Yak Master
216 Posts |
Posted - 2007-04-18 : 13:17:06
|
If you are referring to the session timeout from a ASP.NET page, the timeout value is defined in the sessionState part of the web.config.<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />SQL Server Helperhttp://www.sql-server-helper.com |
|
|
sql_lover
Starting Member
14 Posts |
Posted - 2007-04-20 : 03:43:05
|
quote: Originally posted by sshelper If you are referring to the session timeout from a ASP.NET page, the timeout value is defined in the sessionState part of the web.config.<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />SQL Server Helperhttp://www.sql-server-helper.com
i hv already declred value of 20 in seesion statebut still session expires too frequently |
|
|
sql_lover
Starting Member
14 Posts |
Posted - 2007-04-20 : 03:45:13
|
quote: Originally posted by jhermiz How are you using session variable?Are you setting the session in a specific part that is causing the problem. Can you post examples.Programmers HowTo's -- [url]http://jhermiz.googlepages.com[/url]
once the user logs in i m seeting a user name(which is a seesion var)in welcome msg which is used as a web user control in every pagenow this user name(sesion var)expires almost every 5-6 minutes |
|
|
|
|
|