Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

For Logout of the application, following is the logic -
1. When a user logs in the system, it creates a session for the user.
2. In User Interface, there are 2 logout links, a function Logout() is called which clears the session of user. It works fine on clicking logout.
But, it logs out when user clicks any link/button at random time period.
I enabled Trace and checked. It shows status code 302 when user automatically logs out.
This entire logic works fine on local browser as well as under IIS. But doesn't work on hosting server.
1. Are there any settings to be done for hosting code?
2. How can I check what's happening and why it logs out of the system?
3. Has status code 302 to do with this issue? Generally it shows 200 (OK) status code when everything works fine.
4. Is there any browser cache issue?
Thanks,
Sneha
Posted
Comments
ZurdoDev 8-Aug-12 10:17am    
If you are using Session the default way then session information is stored in the actual process of IIS so if the app pool is restarted, for any reason, you will lose your sessions.
sgjoshi85 9-Aug-12 2:14am    
yes i guess that is an issue. i asked hosting server to check app pool. this must be the reason. thanks ryanb31 :)

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