Solved

Where is the Session variable stored?

Posted on 2011-02-11
3
362 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

18 Experts available now in Live!

Get 1:1 Help Now