Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi

I have on application which is developed in ASP.NET it is simple reporting system
I am facing problem of application gets logged out after some time when ever the button click event happen

In the application I have used the JQuery's ajax method to perform database operation in the method is called from code behind on individual page using [WebMethod] in it
I have used bootstrap for designing and Entity Framework for DB operation

I have made the setting in web.config file for session time to last little longer and holding the values of the authenticated user in session variable which is used globally

please help me on this.

Reagrds
Posted
Comments
F-ES Sitecore 1-Oct-15 5:18am    
You will never make the session last forever. Implement some kind of "remember me" function where people are automatically logged back in when their session starts. This is normally done by storing data in a persisted cookie that you can use to re-establish their credentials. Google for how to implement remember me for specific examples.
aarif moh shaikh 1-Oct-15 5:49am    
session problem...
Sinisa Hajnal 1-Oct-15 6:09am    
Put the session data into cookie and let that serve as the login/data container. Session will expire eventually and that is a good thing. You shouldn't really keep the user logged on indefinitely.

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