a little authentification handler doesnt work ...
| From: | David D | Date: | Mon, 13 May 2002 20:11:59 +0000 |
| Subject: | a little authentification handler doesnt work ... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97415@lists.php.net to get a copy of this message | ||
Hi all,
I try to use your session handler, but didnt mange to
I can debug the script and notice that
$GLOBALS['HTTP_SESSION_VARS'];
doesnt exist ...so $_SESSION became null ?
I donwload that at http://adnoctum.netfirms.com/auth/.
The shity code :
/**
* Utility function called implicitly when needed.
*/
function startSession() {
if(!isset($_SESSION)) { // PHP 4.0.x
$_SESSION = &$GLOBALS['HTTP_SESSION_VARS'];
}
if($this->securityLevel == AUTH_SECLEVEL_PROTECTED) {
session_cache_limiter('private, must-revalidate');
header('Cache-Control: private, must-revalidate');
} else {
session_cache_limiter('no-cache, must-revalidate');
header('Cache-Control: no-cache, must-revalidate');
}
....
Do i need special options to make your script working ?
I read the readme but I have got all rigth !
Thanks.