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) .


"Stephen" <[EMAIL PROTECTED]> wrote in message
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:


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?

Stephen Craton

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to