Re: Re: cvs: pear /Auth Auth.php Container.php /Auth/Container DB.php
| From: | Martin Jansen | Date: | Thu, 12 Jul 2001 05:24:13 +0000 |
| Subject: | Re: Re: cvs: pear /Auth Auth.php Container.php /Auth/Container DB.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-261@lists.php.net to get a copy of this message | ||
On 11 Jul 2001 23:48:40 -0000, nloboek@e35203.upc-e.chello.nl wrote:
>> $query = sprintf("SELECT * FROM %s WHERE %s = '%s'",
>> $this->table,
>> $this->username_col,
>> $username
>> );
>Just a small suggestion. It might be handy to select a unix timestamp
>which you can check against the idle time of the user. Something like:
>
>$query = "SELECT UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(idle)
> AS current FROM ....
I can't see where this should be useful for. Could you explain it
again ;-)?
>It will allow a person to check against a system wide idle time or a
>'per user' based idle time.
Do you look for something like an expire time for the auth session?
I implemented such a feature by using $expire in the Auth class.
- Martin