Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends..
My application session is getting expired and it is redirecting to login page this is only happing on live server. But in local machine it is working fine. I also checked all session in my application. Please suggest me what should be region behind it.


--I also set session timeout property in IIS still it is geting expire while working such as clicked on buttons,links...
Posted
Updated 27-Jun-13 1:58am
v4
Comments
Mohammed Hameed 27-Jun-13 0:58am    
May I know where you have hosted your application, dedicated or shared??

Usually session TimeOut on live servers is comparatively is less than what we have on local machine. You may need to increase session Timeout on server.

Similar type of problem is discussed on below thread.
Unexpected session Timeout[^]
 
Share this answer
 
The timeout period is normally around 20 mins .. but varies on different servers i believe.
Try this within the <system.web> code block in web.config file -

XML
<authentication mode="Forms">
    <forms loginUrl="UnAuthorized.aspx" defaultUrl="home.aspx" timeout="300" cookieless="UseCookies"/>
</authentication>
 
Share this answer
 
v3

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