Giter VIP home page Giter VIP logo

Comments (7)

ocram avatar ocram commented on May 18, 2024

Thanks for your report!

I don't think what you're describing is actually happening. Can you check again?

There may be at least two reasons why you came to that conclusion: The developer tools or cookie inspection that you used does not refresh instantly or correctly. Or the code that you were testing has a redirect after logout, so that the new cookie is created on the subsequent page request.

from php-auth.

acodispo avatar acodispo commented on May 18, 2024

Thanks, @ocram! I bet the following is the culprit.

Or the code that you were testing has a redirect after logout, so that the new cookie is created on the subsequent page request.

If I have time, I'll strip the php-auth code out of my code and make sure, but I think you're right.

from php-auth.

ocram avatar ocram commented on May 18, 2024

If that is the issue, everything is fine, of course. Creating a new session and an accompanying new session cookie is totally okay and allows for session information to be stored about "guests" and for a new login later on.

from php-auth.

ocram avatar ocram commented on May 18, 2024

Have you been able to look into this?

Temporarily removing the redirect (that appears to be there) is probably enough to test this.

from php-auth.

acodispo avatar acodispo commented on May 18, 2024

@ocram Thank you for reminding me! I will remove the redirect & test, and get back to you ASAP.

from php-auth.

acodispo avatar acodispo commented on May 18, 2024

@ocram I'm not sure anymore that this is actually happening. Firefox cookies dialog shows these multiple cookies (one new one showing up on each logout), but FF developer tools storage inspector does not show multiples. And they don't seem to be causing any problems. Let's call it a weird quirk of the browser dialog. Thanks for your input!

from php-auth.

ocram avatar ocram commented on May 18, 2024

Thanks!

That's definitely a quirk in Firefox's cookie dialog. You always have to close that dialog and re-open it afterwards for it to discard deleted cookies. So it's not really a "realtime" view.

The storage inspector in the developer tools, however, works much better, as you said. You don't have to refresh manually there.

from php-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.