Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Correct me if I am wrong, but I think there is finally no way to do what I am trying to since Chrome (and I think FF too) save the exact cookie and are able to restore the session skiping all LoginHandler methods.</p> <p>Let me explain myself.</p> <p>Right, I was about (and actually I did) to implement the solution described in your answers and comments:</p> <ol> <li>User X enters the web site with his login/password using Safari (for example)</li> <li>The login datetime is stored both in table <code>User</code> in the database and in session</li> <li>Without logging out, the same User X opens a different browser (Chrome, for example)</li> <li>The new login datetime is updated in database and in Firefox session</li> <li>The user gets back to Safari and tries to refresh the page</li> <li>He gets an exception as the datetime doesn't coincide with the one stored in session</li> </ol> <p>Well... great so far, as it seems to solve the problem.</p> <p>And here comes the big deal: as described <a href="https://stackoverflow.com/questions/10617954/chrome-doesnt-delete-session-cookies">here</a> and <a href="https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-bugs/cjt3WwgOJ3c" rel="nofollow noreferrer">here</a>, Chrome is not deleting properly the session cookies. So when user doesn't logs out and just close the browser, anytime he or she comes back to Chrome, the session is automatically restored without passing through a login handler, login method or anything around.</p> <p>This causes that "magical" datetime key not to be saved both in database and session and, as a result, put a stick in the wheel of letting just one session as a time, what was the original plan.</p> <p>Any more light on the issue??</p> <p>I want to cry :(</p>
    singulars
    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.
    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