session time out in web config

Posted by Alok under Regular Expressions on 4/4/2011 | Points: 10 | Views : 15677 | Status : [Member] | Replies : 3
I want To automatic session out after 15 min,when user is InActive.
How to set session Variable in web Config.

Thanks & Regards,
Alokssm



Responses

Posted by: SheoNarayan on: 4/4/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Specify the sessionState timeout property to 15, read below url for more details.

http://www.dotnetfunda.com/interview/exclusive/x912-where-do-you-specify-session-state-mode-in-aspnet-.aspx

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Alok, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mesh_2010 on: 4/4/2011 [Member] Starter | Points: 25

Up
0
Down

Hi alok,

you can try...

<sessionState mode="SQLServer"

cookieless="true "
regenerateExpiredSessionId="true "
timeout="15"
sqlConnectionString="Data Source=MySqlServer;Integrated Security=SSPI;"
stateNetworkTimeout="15"/>



Thanks
RameSH sinGH

Alok, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vinay13mar on: 10/14/2012 [Member] Starter | Points: 25

Up
0
Down

Login to post response