|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-02 05:39 UTC] matthias dot krehl at key-work dot de
[2001-05-22 21:05 UTC] jmoore@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
When using Cookies for session management everything works fine (the authentication part) but 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! -- 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']; // just to be sure there is no interference with form data echo $HTTP_POST_VARS['ident']; echo $HTTP_GET_VARS['ident']; ---------------------------------------------- bye Matthias