Solved

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

Posted on 2008-10-09
2
181 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
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…

821 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