force every user to re-login force every user to re-login
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

force every user to re-login

Started by alanlai, July 31, 2008, 05:54:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alanlai

Lately I got many user on my site.

And I really want them to re-login using there password

so how can I clear there password saved "cookie", and force them back to the login page?

because I really want to clear so "non-active" users~

thanks

Nibbler

You could empty the sessions table using phpmyadmin, but I don't really see the point.

Joachim Müller

You could as well change your cookie name. This would force everyone to log in once more - it would be the same as if you were deleting all your user's cookies. Make sure to use a valid cookie name (no dots or similar invalid characters). As Nibbler suggested though: it's very hard to understand what you're trying to accomplish and what should be the benefit except annoying your users.

Nibbler

The login cookie does not use the cookie prefix, so that won't work.