Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
ASP.NET - Lifespan of Session Variable
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Sivangari
New Member
Join Date:
Jul 2008
Posts:
2
#1
ASP.NET - Lifespan of Session Variable
Jul 24 '08, 05:06 AM
In my application i have session.When i close the browser without signing out or when i restart my IIS .My session gets null or exchanged.
Can anybody help me out..
DrBunchman
Recognized Expert
Contributor
Join Date:
Jan 2008
Posts:
979
#2
Jul 24 '08, 09:22 AM
Hi Sivangari,
A Session has a limited lifespan and is ended when, amongst other things, you close the browser, a page errors or a session times out.
If you are trying to store data across sessions then you will need to use something else like a database or xml file.
Hope this helps,
Dr B
Comment
Post
Cancel
Frinavale
Recognized Expert
Expert
Join Date:
Oct 2006
Posts:
9749
#3
Jul 24 '08, 01:18 PM
When you close your browser your Session ID cookie is removed.
Therefore, when the user comes back to your page later the Server determines that there is no Session Identifier cookie and creates a new Session for the user.
What do you mean by "exchanged" ?
-Frinny
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment