php - SimpleSAMLphp Stay Logged In -


I am confused about cookie settings in config.php.

I have an identity provider and three service providers. I want my users to be able to log in on the site within the X number again. I have set the session.cookie.lifetime to 7 days (60 * 60 * 24 * 30)

and session.duration is set to default 8 hours (60 * 60 * 8).

How do I use cookies to automatically log myself in if the user has not expired? Session duration is taking priority over the cookie lifetime.

The cookie data is valid using a session, so both session.duration And session.cookie.lifetime must be at least seven days in your case. When the session is ending, the server will not recognize it, because the cookie is useless.

This is usually a good idea to allow session.duration a bit Session.cookie.lifetime for clock skew.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -