Solved

Where do we store the session information in asp.net?

Posted on 2008-10-09
2
182 Views
Last Modified: 2010-04-14
Hi,
Could you please tell me where will the session information be stored?
Suppose if I store the logged in userid in a session variable , then what settings do I need to do to retrieve this session variable across the pages?

Thank you
0
Comment
Question by:ipjyo
2 Comments
 
LVL 32

Accepted Solution

by:
Daniel Wilson earned 500 total points
ID: 22680422
Session variables span pages.  http://msdn.microsoft.com/en-us/library/ms972429.aspx

Session() is a collection of name-value pairs for this purpose.

Session("UserID") = "DanielWilson"'somewhere else ...sUserID = Session("UserID")If not sUserID is nothing then lblUserID = suserID

0
 

Author Comment

by:ipjyo
ID: 22681685
Thank you
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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