Solved

Where is the Session variable stored?

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

628 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