Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm Using Following code in webconfig but No use ,

sessionstate mode="InProc" cookieless="true" timeout="1440"


And .,

Code at Gobal.asax

C#
void Session_Start(object sender, EventArgs e)
  {
      // Code that runs when a new session is started
      Session.Timeout = 1440;
  }



both code in My site but Not work ,

Anyone Give Right Solution !
Posted
Updated 24-Feb-14 20:25pm
v3
Comments
Kornfeld Eliyahu Peter 25-Feb-14 2:36am    
'Not work'? In what way? It ends before 1440 minutes?
Can you tell how much time it does work?
Maybe you have some timeout on your pool? Or pool recycles before session timeout?
Maciej Los 25-Feb-14 2:39am    
"Not work" is not informative at all! Improve your question and provide more details about your issue.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900