trouble with reading session variables: BUG?

From: Date: Tue, 30 Jan 2001 18:16:42 +0000
Subject: trouble with reading session variables: BUG?
Groups: php.general 
Request: Send a blank email to php-general+get-37382@lists.php.net to get a copy of this message
When using Cookies for session management everything works fine (the authentication part). But not passing the values of the session variables. In the example below the existence of '$ident' is verified. But no chance to get its value: no 'echo' prints out anything! Even isset() denies the existence of $HTTP_COOKIE_VARS['ident']. -- example ------------------------------ session_start(); if (!session_is_registered('ident')) { header ("Location: ../index.php"); } // trying to retrieve $ident which is obviously known to the session echo $ident; echo $HTTP_COOKIE_VARS['ident']; echo $HTTP_SESSION_VARS['ident']; ----------------------------------------- Tested on Win2000/IIS5 and Linux 6.1/Apache3.12 with PHP4.04pl1 Any Ideas? bye Matthias Matthias Krehl matthias.krehl@key-work.de

« previous php.general (#37382) next »