Auth ending sessions after one page?
| From: | Alexander Payne | Date: | Tue, 09 Mar 2004 21:24:16 +0000 |
| Subject: | Auth ending sessions after one page? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-11191@lists.php.net to get a copy of this message | ||
I thought i had successfully implemented PEAR's Auth class for a site of mine. However, now when I login successfully it displays the first page of my site, but navigating to subsequent Auth-protected pages kicks me back out to the login screen.
My implementation differs very little from the example provided in the PEAR documentation: my entire "site" is based around one page that includes other pages based on a switch from a URL parameter. The site content to displayed is inside of an if statement, as per the PEAR example:
if ($myauth->getAuth()) {
// display site content
...
Does anybody know why I would be allowed to view one page after logging in and then kicked out when I request the next Auth-protected page? Thanks for your time!
________________________________________________
Alexander Payne