MiServer 2.0 Session Cookie
1 post
• Page 1 of 1
MiServer 2.0 Session Cookie
MiServer Gurus:
I see this COOKIE in the req.Headers
Are these assumptions correct?
In the beginning, when a user first visits the HOST ... MiServer will determine that the user's HTTP Header does NOT have a COOKIE. So, MiServer will Create a new Session ID, and Create the COOKIE to reflect the NEW Session=xxxx value.
If MiServer is RESTARTED, then all Sessions are ended, however, users who have visited MiServer will have a saved COOKIE in their Browser that will be passed the next time they visit the same HOST.
The next time that user arrives at MiServer, their COOKIE will have an older Session=xxxx value that is for a MiServer Session that no longer exists.
So, MiServer will start a NEW Sesion ID and update the COOKIE Session=xxxxx to a new value for the new Session. This updated Cookie is passed back to the user in the Response.
If the MiPage DELETES a user's COOKIE Session= value
HOWEVER, the PREVIOUS SESSION ID will REMAIN ACTIVE and ORPHANED until it expires and the sessions ends.
The MiServer COOKIE will remain saved in the user's Browser for ?? days / hours ? (how long before the MiServer cookie expires?)
Where can we SET the expiration time for the MiServer session COOKIE ?
Thanks in advance for the clarification.
UPDATE: This HMTL debugging tool helped answer my questions.
https://validator.w3.org/
Cheers,
//W
I see this COOKIE in the req.Headers
- Code: Select all
Session=0Vqohlu70J71kgByfJ6OPVpIhULnEKHJzGICzf7UCLw=; _ga=GA1.2.285959592.1465818297
Are these assumptions correct?
In the beginning, when a user first visits the HOST ... MiServer will determine that the user's HTTP Header does NOT have a COOKIE. So, MiServer will Create a new Session ID, and Create the COOKIE to reflect the NEW Session=xxxx value.
If MiServer is RESTARTED, then all Sessions are ended, however, users who have visited MiServer will have a saved COOKIE in their Browser that will be passed the next time they visit the same HOST.
The next time that user arrives at MiServer, their COOKIE will have an older Session=xxxx value that is for a MiServer Session that no longer exists.
So, MiServer will start a NEW Sesion ID and update the COOKIE Session=xxxxx to a new value for the new Session. This updated Cookie is passed back to the user in the Response.
If the MiPage DELETES a user's COOKIE Session= value
- Code: Select all
req.DelCookie 'Session'
HOWEVER, the PREVIOUS SESSION ID will REMAIN ACTIVE and ORPHANED until it expires and the sessions ends.
The MiServer COOKIE will remain saved in the user's Browser for ?? days / hours ? (how long before the MiServer cookie expires?)
Where can we SET the expiration time for the MiServer session COOKIE ?
Thanks in advance for the clarification.
UPDATE: This HMTL debugging tool helped answer my questions.
https://validator.w3.org/
Cheers,
//W
-
woody - Posts: 148
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group