[PHPLIB] cookie time limits From: Joshua Udall (jaudall <email protected>)
Date: 12/29/99

PHPLIB -

I want to have several editors for my site who can do work
(approvals etc) on their own machines and remotely. They have a
directory on the site which will be restricted by PHPLIB permission
class. I'd like to make it so that for their own machine - a cookie is
set which makes the auto-login transparent. That way they don't
have to login everytime they go to the site. On 'remote' computers,
when they edit the site, I'd like to have the cookies expire within
say, 5-15 min.

My first thought is to simply allow the editor set the timelimit of the
cookie on the login screen. On their own machines, I'd set it to
expire every 3 to 4 weeks. Or would a simple check box ("If this is
your home machine click here") be enough?

 Surely, this has been worked out and I'm wondering about different
ways to accomplish it - some example code would be extremely
helpful as well.

JOsh
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.