Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: "Your session has ended." modal appearing when logged out #12121

Closed
flynnt opened this issue Oct 13, 2022 · 2 comments
Closed

[4.x]: "Your session has ended." modal appearing when logged out #12121

flynnt opened this issue Oct 13, 2022 · 2 comments
Assignees

Comments

@flynnt
Copy link

flynnt commented Oct 13, 2022

What happened?

Description

On a completely fresh Craft install, I noticed that the "Your session has ended." modal is appearing even though I am fully logged out. Attempts to enter the admin password in the form within that modal lead to a "Request missing required body param" error, presumably because there's not actually a session.

It appears that the admin/actions/users/session-info&dontExtendSession=1 is being called every 60 seconds, which is normal when a user is logged in, but in this case it's being called when a user is logged out as well.

Steps to reproduce

  1. Install Craft 4 via composer create-project craftcms/craft.
  2. Accept the prompts to initialize and install Craft.
  3. Go to the admin URL.
  4. Wait 60 seconds.
  5. See modal.

I tested this on a fresh install in DDEV as well as Valet.

Expected behavior

The session expiration modal does not appear for users that are not logged in.

Actual behavior

The session expiration modal appears even when a user it not logged in.

Craft CMS version

4.2.7

PHP version

8.1.10

Operating system and version

macOS Monterey 12.6

Database type and version

MySQL 5.7.23

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.0-48)

Installed plugins and versions

None.

@brandonkelly
Copy link
Member

Thanks for reporting! This is fixed for the next Craft 3 and 4 releases via #12129.

@brandonkelly
Copy link
Member

Craft 3.7.57 and 4.2.8 are out now with that fix. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants