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)
- User already exists when registering using InnoDB HOT 3
- Is having predictable user ID's a good idea? HOT 4
- Dead project? HOT 2
- Update confirmation request instead of creating a new one HOT 7
- Session problem with Brave browser HOT 4
- Fatfree Framework Issue HOT 6
- registration throttling HOT 4
- isRemembered( ) always returns false HOT 2
- Only one login per device/browser? HOT 4
- check isLoggedIn() not working consistently HOT 8
- What value should be in the status column for isPendingReview? HOT 4
- Normalize users table to reference email addresses in another table? HOT 3
- User "verified" status does not change HOT 4
- How to attach to already started session? HOT 3
- How to avoid resendConfirmationForEmail if user is already verified? HOT 1
- 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
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.