Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is a session cookie?
    primarykey
    data
    text
    <p>I was reading <a href="http://jaspan.com/improved_persistent_login_cookie_best_practice" rel="nofollow">this</a> article and I was wondering, what exactly is a <code>standard session management cookie</code> (SSMC)?</p> <p>It also recommends that the SSMC should be a <code>session cookie</code> and therefore expire when the browser is closed.</p> <p>Because it's an 'improved' article, I tried to look for any definition in the original article (<a href="http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/" rel="nofollow">here</a>). According to it, a <em>"SSMC handles the credentials for the life of the session, so the newly assigned cookie will not be checked until the next session (at which point it, too, will be invalidated after use)."</em></p> <p>What I didn't understand is how long will the user be logged in if the session expires when the browser closes and the session's lifetime credentials are deleted? and how this should be used? There is nothing in the article about the 'normal' cookies (that contain the login information) being session cookies and therefore they should have an expiration date.</p> <p>I'm really confused so I hope someone can clear it up for me. Any alternatives as secure as this one are also welcomed. Thanks!</p> <p><strong>Background:</strong></p> <p>I'm writing a remember me function using cookies. Apparently there are 2 cookies; The first one is the <code>SSMC</code> (standard session management cookie) and the second one is a login cookie which consists of:</p> <ul> <li>A username</li> <li>A <code>unique token</code> that's being regenerated every time the user logs in to the site</li> <li>A <code>series id</code> which is a unique random number for a specific <code>username</code> that <strong>never</strong> changes. These are also stored in a table in the database.</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload