Re: Session Trouble

From: Date: Thu, 24 Oct 2002 23:17:20 +0000
Subject: Re: Session Trouble
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121366@lists.php.net to get a copy of this message
why don't you use the session_register("voted") function. Then if you want to check it you can use the session_is_registered("voted) . -Matias "Stephen" <webmaster@melchior.us> wrote in message news:000a01c27ba1$d8871e00$0200a8c0@melchior... I'm trying to register a session for a poll by first opening the session (session_start()), then registering it like this: $_SESSION['voted'] = "yes"; Problem is, when I check to see if the session is there: if(isset($_SESSION['voted'])) I have it load up a page containing the poll results: <?php if(isset($_SESSION['voted'])) { include("poll_voted.php"); } ?> But it doesn't display it. It displays the default (which is the voting part). Any ideas why? Thanks, Stephen Craton http://www.melchior.us http://php.melchior.us

« previous php.general (#121366) next »