Re: [phplib] Auth Expiration From: Philip Strnad (philip <email protected>)
Date: 07/25/00

Kartic,

> When an auth expires after $lifetime and a user, who has been idling, clicks
> on a link, instead of taking him back to the initial login screen (with the
> welcome message), how can I instead show a message saying that his
> authorization has expired along with the login box?

I posted some code for this a few weeks ago. Search for my name in one
of the archives and one of my latest posts should contain the answer.
 
> I also have another question that I am tagging with this.
> ...

After authentication expires after $lifetime you could just ask the user
for his/her password since you still have the username in
$auth->auth["uname"]. Then you could have a sign out completely link
which would point to a script that deletes the session and
authentication subsequently and gets rid of $auth->auth["uid"] and
$auth->auth["uname"]. Check out $sess->delete() and $auth->logout(). I
think those should do the trick, but there may be some other functions
that you'll need to use also. I can't remember the details right now.

-Philip

--
http://www.audiosurge.com/  Capturing The Energy of Music
http://www.buymp3.com/      The New Way To Buy Music

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>