Auth module. How to make users always logged
| From: | Paco Brufal | Date: | Thu, 01 Feb 2007 21:17:02 +0000 |
| Subject: | Auth module. How to make users always logged | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26461@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to maintain users logged forever, even if the user closes
the browser, but I can't do it.
I have included this in my source:
ini_set("session.gc_maxlifetime",604800);
$myauth->setExpire(604800,TRUE);
$myauth->setIdle(604800,TRUE);
but when I close the browser, I must login again.
Somebody can explain me how to do it? Thanks in advance.