Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends
I am having problem in maintaining session
In my project when User login then its id is stored in Session variable eg.Session["CustomerId"]= id;
and in web.congig ihave given session timeout as 20min

XML
<system.web>
  <sessionState timeout="20"  mode="InProc" cookieless="false" />
</system.web>


Steel my session values gets clear after 2-3 min and new session start.

Please give me solution for this as soon as possible

Thanks in advance
Posted
Comments
IpsitaMishra 4-Oct-13 2:13am    
Put a debugger in session_end of global.ascx and check,and even if you will not provide the timeout in the config the sessionout time is 20 min by default.so, erase this line from config file and check once.

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