Comments (7)
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.
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.
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.
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.
@ocram Thank you for reminding me! I will remove the redirect & test, and get back to you ASAP.
from php-auth.
@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.
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)
- How do I remember the user after calling admin()->logInAsUserById? HOT 1
- Compatibility with Redis for User Sessions
- Random User Logout and Cookie Anomalies HOT 4
- $auth->forgotPassword creates fatal error HOT 2
- Use PHPAuth for a REST API ? HOT 1
- InvalidSelectorTokenPairException on every attempt to change password HOT 7
- periods in email addresses HOT 2
- Is compatible with php 8.1 ? HOT 2
- [php 8.2.4] - Deprecated: Automatic conversion of false to array is deprecated / multi-projects
- oAuth2 + PHP-auth implementation HOT 1
- The best way to send a re-confirmation email? HOT 5
- Encryption of PII HOT 1
- More documentation is required
- session is empty after redirect HOT 7
- Why use selector/token pair for password reset? HOT 1
- [Question] Logout everywhere after password reset. HOT 1
- Is there any kind of starter/boiler template for the frontend forms? HOT 4
- comma too many in PostgreSQL setup HOT 1
- use a SCHEMA for database tables HOT 1
- composer update - undefined method: isWaitingForSecondFactor() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-auth.