?
Solved

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

Posted on 2008-10-09
2
Medium Priority
?
189 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 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