Solved

Where is the Session variable stored?

Posted on 2011-02-11
3
361 Views
Last Modified: 2012-05-11
When I add an object to the Session[] dictionary, is it stored in the Browser memory? Or on the ASP.NET server? Or somewhere else?

Thanks,
newbieweb
0
Comment
Question by:newbieweb
3 Comments
 
LVL 18

Assisted Solution

by:Anil Golamari
Anil Golamari earned 200 total points
ID: 34874416
Session variables will be stored on Server. Session ID is stored in a cookie. It is used to restore the session variables on the server when client's post back arrives.
0
 
LVL 3

Accepted Solution

by:
alokvaria earned 300 total points
ID: 34874483
Session variable can be stored in many different ways depends on what is your requirement..You can change those settings in web.config..
Default is what lucky85 explained..
While you can also have cookie less session,
ASP.NET maintains cookieless session state by automatically inserting a unique session ID into the page's URL. For example, the following URL has been modified by ASP.NET to include the unique session ID lit3py55t21z5v55vlm25s55:


Other than that there are three mode to save session.

State Server Mode

SQL Server Mode

Custom Mode

Read below article to understand them:
http://msdn.microsoft.com/en-us/library/ms178586.aspx
0
 

Author Closing Comment

by:newbieweb
ID: 34874888
Thanks!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now