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

Store logincheck in the session data #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

landswellsong
Copy link

The logincheck cookie is sticky and persists through server restart and PHP cookie purge. Rolling the field as a component of $_SESSION in order to allow the operator to force logout by removing sessions and not to send the password hash around every request (should be safe, but why do it if session serves the same purpose and is furthermore ephemeral).

Note: I'm not a web-dev, just something I ran into. Pls review.

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

Successfully merging this pull request may close these issues.

1 participant