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

Documentation for Session.created does not match actual behavior #981

Open
FeldrinH opened this issue Aug 23, 2024 · 0 comments
Open

Documentation for Session.created does not match actual behavior #981

FeldrinH opened this issue Aug 23, 2024 · 0 comments

Comments

@FeldrinH
Copy link

FeldrinH commented Aug 23, 2024

The documentation for Session.created states that this field represents "Creation UNIX TIMESTAMP, the value returned by time.time() for very first access to the session object."

This appears to be incorrect. In practice, Session.created seems to contain the timestamp of the last time the session data was changed. There is also some inconsistency to this. In particular, Session.created is only updated if you change the session by explicitly setting or deleting a value. Calling Session.changed() or Session.invalidate() does not update Session.created, even though these methods also change the session.

What is the intended behavior of Session.created? Please update the documentation and/or code so that the documented and actual behavior match.

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

No branches or pull requests

1 participant