Last post Feb 16, 2012 10:22 AM by stevenbey
Feb 15, 2012 10:16 PM|bonusnet|LINK
My ASP.NET store UserID using Session.
My question as following,
Feb 15, 2012 11:08 PM|venkatmca008|LINK
Yes Session is unique.
u can destroy the Session by set session("userid")=nothing
please refer this...
Feb 15, 2012 11:19 PM|Prince Srivastava|LINK
Yes Session Always Unique
follow this link
hope this will help you .
Feb 15, 2012 11:26 PM|vinay13mar|LINK
answer of your question one by one
1. yes sessin is always be unique for each and every user who are visiting to your website . if you are rasing session in application object on thta case it will be same for all users and if u r taling at user label on that case it will be unique for eanh
and every user.
2. For distroying the session we use Session.abandon(); . and if your browser cookie is disable it sessin can not be created
for more detail about sessin this link will help you
Feb 16, 2012 10:14 AM|satalaj|LINK
Session is unique for each browser. However, in IE8, you can request new session by clicking on
File=> New Session instead of New TAB.
To know more about session:
you can refer http://revenmerchantservices.com/post/sessions-in-aspnet.aspx
lost in web-garden or web-farm scenarios, if you are using in proc session state mechanisum.
You can also refer
Application pool and worker process to understand how session values get destroied.
This is what everyone should know while dealing with session in Asp.net.
Feb 16, 2012 10:22 AM|stevenbey|LINK
Did a Session always unique? Means, nobody will share the same Session
Yes, the session is unique.
What's the thing can destroy the Session
There is a session timeout, which is usually 20 minutes. This means that the session will stay alive for 20 minutes after the last request and then the Session.End() method will be called. However, this is dependent on the session's tracking cookie, so
if you close down the browser (say you close the browser by mistake and open it immediately) ASP.NET will regard the next request as a new session.