Does Session.SessionID change on every postback for the same user?
-
Hello, In my pageInit I have mSesID=Session.SessionID.ToString(); Each time a postback occurs, I receive a new sessionID #. Is this correct? Shouldn't the session be the same session value even during postbacks for the same user? I assumed it would always be the same value, but I'm probably wrong. Thanks
-
Hello, In my pageInit I have mSesID=Session.SessionID.ToString(); Each time a postback occurs, I receive a new sessionID #. Is this correct? Shouldn't the session be the same session value even during postbacks for the same user? I assumed it would always be the same value, but I'm probably wrong. Thanks
I'm not sure but you could easily create a new guid and store that in session. Then you would have an identifier.
I didn't get any requirements for the signature
-
Hello, In my pageInit I have mSesID=Session.SessionID.ToString(); Each time a postback occurs, I receive a new sessionID #. Is this correct? Shouldn't the session be the same session value even during postbacks for the same user? I assumed it would always be the same value, but I'm probably wrong. Thanks
-
Hello, In my pageInit I have mSesID=Session.SessionID.ToString(); Each time a postback occurs, I receive a new sessionID #. Is this correct? Shouldn't the session be the same session value even during postbacks for the same user? I assumed it would always be the same value, but I'm probably wrong. Thanks
You will receive different sessionID while you havent save something in the session Once you save something in the session, the sessionID will remain the same
Protected Sub Page\_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init Response.Write("Init " & Session.SessionID) End Sub Protected Sub Page\_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then Session("X") = "X" End Sub
Alexei Rodriguez