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

Session restoring doesn't actually work? #314

Open
vaartis opened this issue Dec 16, 2021 · 1 comment
Open

Session restoring doesn't actually work? #314

vaartis opened this issue Dec 16, 2021 · 1 comment
Assignees
Labels

Comments

@vaartis
Copy link

vaartis commented Dec 16, 2021

When I modify a session and then call Session.Save, the file is created and can be loaded with Session.Load, however loading it does nothing. Even when the request has the same cookie as before, after a restart AWS creates a new one and ignores the old one. Basically, after restarting and calling Load, Status.Session(Request) returns a new ID every time instead of using the one from the cookie.

The database is read and the old values are there, but they're not used by Status.Session for some reason.

@vaartis
Copy link
Author

vaartis commented Dec 16, 2021

The workaround for this is to manually pull the correct session id from the cookies and look up the database with that.

   function Request_Session(Request : Status.Data) return Session.Id is
   begin
      if Cookie.Exists(Request, Server.Session_Name) then
         return Session.Value(Cookie.Get(Request, Server.Session_Name));
      else
         return Status.Session(Request);
      end if;
   end Request_Session;

@TurboGit TurboGit self-assigned this Dec 3, 2024
@TurboGit TurboGit added the bug label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants