Solved

ASP.NET Session data after crash

Posted on 2013-12-17
5
593 Views
Last Modified: 2014-01-02
I have a web application written in C#, ASP.NET.
The application is not stable and sometimes crashes when users are using it.
After the crash the user brings up the application's logon screen again.
I am storing the session data in the Session object provided by ASP.NET.
Question :
Is it possible to retrieve information of the previous session (the one that crashed) when new logon screen is loading ?
0
Comment
Question by:vu3lmg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39725012
No, a crash in a web application will cause the process running the website to restart and therefore lose all of the session data.
The alternative is to store session information in sql server so it can be retrieved after a crash.
0
 
LVL 1

Author Comment

by:vu3lmg
ID: 39725122
Dear jacko72
My question is about extracting the information from the client PC, not the server.
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39725157
Session state is stored on the server not on the client, a client based solution would be to use cookies.
0
 
LVL 1

Author Comment

by:vu3lmg
ID: 39725411
Yes session state is stored on the web-server but even that web-server would use cookies to identify between different users.  Right ?  
I am trying get that information (cookie) after the failure.

Please bare with me for the silly questions / lack of proper terminology, but I am new to the web programming.
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39725518
The session cookies that a web-server uses are usually in-memory or transient cookies which are kept in temporary so they are lost when a browser is closed or due to a crash.
It is possible to get around this by writing your own cookies to the client or using state server management to manage session state

http://www.beansoftware.com/ASP.NET-Tutorials/Store-Session-State-Server.aspx
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question