Re: AUTH - verifying authentication on later pages

From: Date: Fri, 02 Feb 2007 00:20:37 +0000
Subject: Re: AUTH - verifying authentication on later pages
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26469@lists.php.net to get a copy of this message
On Thu, 1 Feb 2007 14:13:21 -0800 (PST), l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:
It's been a while since I used AUTH and I have searched the pages and don't quite get the manual on this one - although you would consider it a newbie question. Once they login and have all the sessions assigned, on pages where they required to have logged in, I am simply manually checking to see $_SESSION['_authsession']['data']['variablename'] is set and what it's equal to. (I set this after AUTH has done it's session setting.) Is there a more secure way? What about checkauth()?
calling Auth::getAuth() or Auth::checkAuth() is the correct way to do it. If you don't then things like expiring, idle checking and session interception arent handled properly. If you don't want a page to be able to login only to continue an existing session set the 'allowLogin' option to false. Adam Ashley

« previous php.pear.general (#26469) next »