in reply to Re^5: [RAKU] How to install zef on Ubuntu 22.04
in thread [RAKU] How to install zef on Ubuntu 22.04

 I've been experiencing startling issues as a result, such as trying to login and the browser restoring the state of a different, previously logged-in, user, resulting in the wrong user logging in!

you are obviously doing something seriously wrong. Even if 2 different users used the same computer, same browser to access your system one after the other, provided they pressed the logout button (and provided your logout procedure worked) there should be no trace of the previous user's data visible to the next. And if the previous user did not logout, then the next one should never arrive to the login screen anyway. Cookies can live on, they can be made to expire at some time, they can be made to expire immediately and erased from the browser, they can be kept alive on the browser but the session you keep can indicate "logout" state etc.

Replies are listed 'Best First'.
Re^7: [RAKU] How to install zef on Ubuntu 22.04
by Polyglot (Chaplain) on Jan 11, 2024 at 14:49 UTC
    At one time I quite agreed with you. I thought I would be able to fix my "seriously wrong" code. It was only after much perplexity, failed attempts, and tons of internet-searching that I realized it was the browser's handling of the hidden form fields at issue. Trust me, I had cleared all of the session-related fields (via AJAX/JavaScript): this had no effect. Note that when I started out, this did work...but browsers have evolved. I was actually surprised to learn that the browser changes were not so recent as my noticing of the problem, and it turns out I may have been slower to catch on because I had been using an old computer with an old OS and older browser (barely functional with many websites these days). My "upgrade" just pulled the wool off my eyes. Perhaps I should feel a bit like Rip Van Winkle. In any case, I must now catch up to the times--though I still program on computers that are over 10 years old.

    Blessings,

    ~Polyglot~

      Polyglot, I realised that your problem may not be cookies-related but not resetting forms properly. Alas, after I posted.

      I have uncovered a suitably ancient solution for your benefit. Vintage, almost, from the distant year 2010. I hope is old enough to not make you freak out :)))) (hehehehe) https://stackoverflow.com/questions/2559616/javascript-true-form-reset-for-hidden-fields . The first I would try would be the 1st answer, but it was written on Fools Day. So fingers crossed.