log in session is clear frequently
Posted Date Unknown Abhilash Pathrose 1 Comment

Session State is Getting Clear Frequently. How can I solve it?

See All Responses Below...
Author
Message Rating
Posted on: 01/06/2012

Use "Out-of-process" model instead of using "In-Process" model.

In the case of In-Process model, session data is stored in the ASP.NET processes memory area. So if the application is restarted, your entire session data will lose.

In the case of Out-of-process model, session data is stored in the Server memory as a separate process. So it will helps you to keep data intact even if the application is restarted.

Eg:
    <system.web>
        <sessionState timeout="60" mode="StateServer"></sessionState>
    </system.web>


Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud