-
Notifications
You must be signed in to change notification settings - Fork 237
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
Request for manifest creates many sessions #2400
Comments
Thanks @joelanman – raising this was on my list of things to do this morning so now I can tick that off! 😝 |
this happens because requests for manifests are done without any cookies, but the handler in the prototype kit serving the manifest file still checks that the request is authenticated, and when it isn't (because browsers don't send cookies) it redirects that request to the login page - which creates a new session - and won't occur locally since auth isn't turned on |
guess the manifest file should be added to
|
Description of the issue
As discovered here, a new session is created for every request to the manifest. This creates many unneeded files
Steps to reproduce the issue
In the browser, go to a page in the prototype
Each time this happens a new session file appears in
.tmp/sessions
Actual vs expected behaviour
Only one session should be created per client
Environment (where applicable)
Workaround
To workaround, add this line to your layouts file (for example
app/views/layouts/main.html
)The text was updated successfully, but these errors were encountered: