Using sessions

From: Date: Mon, 25 Feb 2002 16:38:46 +0000
Subject: Using sessions
Groups: php.general 
Request: Send a blank email to php-general+get-86113@lists.php.net to get a copy of this message
i'm having some trouble using sessions. first of all i have to use php 4.0.6. When i use $HTTP_SESSION_VARS, the session variable isn't being saved. for example: if(!isset($HTTP_SESSION_VARS['id'])){ $HTTP_SESSION_VARS['id'] = 0; } else{ $HTTP_SESSION_VARS['id']++; } echo $HTTP_SESSION_VARS['id']; every time i refresh the browser it returns 0. i have version 4.1.6(i tink. it's the last one)at home and it works fine. but if i use the session_register it all works ok. i've tried to use global $HTTP_SESSION_VARS but nothing changed. could someone help thanks Joel Alexandre Lisboa Portugal

« previous php.general (#86113) next »