Closed StrykeSlammerII closed 1 week ago
I tried to replicate this issue and failed. While the old "UF4" Cookie was still present (should be normal), login and remember me was working fine with the UF5 name. So it must be something else.
I was using a local install on my Mac with Safari. Were you using Docker by any chances?
I'll close this issue for now, we can reopen if you find more info on this.
Local install under Linux, with Firefox.
I'll post again if I find out anything new, but for now I'm going to just use the UF4 session name as a workaround. Thanks for checking.
Affected sprinkle or package
userfrosting/sprinkle-core,userfrosting/sprinkle-admin,userfrosting/sprinkle-account
UserFrosting or package Version
5.1.3
Debug Data
Chat Discussion (optional)
https://chat.userfrosting.com/channel/support?msg=tXdQbAnn4sS8CKTGa
Description
After overwriting the
session=>[name=>'uf4']
config key in a customapp/config
file, logging in only works if "Keep me signed in" box is checked. If unchecked, the login drops back tohttp://localhost:8080/account/sign-in?redirect=%2Fdashboard
with a blue "Login required" alert message.After investigation, logging in then back out (with "Keep me signed in" checked) clears the base
uf5
cookie--but before the session name is changed, logging out does not clear theuf4
cookie. I don't know enough to be certain which is intended, but the inconsistency may be a hint.Only other hint I can offer: I noticed issues logging in to my UF5 dev "recently" (within past month?) so it's probably not a longstanding issue.
Steps To Reproduce
1) Spin up fresh UF5 install --I've only tested SQLite db. Issue occurs with or without email setup, under all accounts whether root or not. Here we test with no email, using root account only. 2) Clear existing cookies if necessary (be sure to start fresh here as well) 3) Login to main UF page as root account (
localhost:8080
), confirmuf4
cookie is added and login (without "remember me") works normally 4) Logout, log back in with "remember me", confirmuf4-rememberme
cookie is also added 5) Logout, confirmuf4
cookie remains butuf4-rememberme
is removed 6) Add/editapp/config/default.php
to change the session name:7) Login now fails unless "Keep me signed in" box is checked! 8) Logging in with "Keep me signed in" and back out now clears both
uf5
anduf5-rememberme
cookies... butuf4
cookie remains!