Sessions don't persist, even to the next line
I'm working on a PHP login/register system, and the login sessions are done using... you guessed it... sessions.

However, sessions simply *do not work.* Here's an example:

    session_start();
    $_SESSION['hi'] == "hi";
    echo $_SESSION['hi'];

It outputs nothing.

My Googling has found me nothing except hints about <code>register_globals</code>. My host, [000webhost][1], has it set to <code>off</code>, could that have anything to do with it?

Okay, just got an answer and I realized how stupid I am (it was a mistake, I knew that). No need to post any more answers.


  [1]: http://000webhost.com "000webhost"
Sessions don't persist, even to the next line
===

I'm working on a PHP login/register system, and the login sessions are done using... you guessed it... sessions.

However, sessions simply *do not work.* Here's an example:

    session_start();
    $_SESSION['hi'] == "hi";
    echo $_SESSION['hi'];

It outputs nothing.

My Googling has found me nothing except hints about <code>register_globals</code>. My host, [000webhost][1], has it set to <code>off</code>, could that have anything to do with it?

Okay, just got an answer and I realized how stupid I am (it was a mistake, I knew that). No need to post any more answers.


  [1]: http://000webhost.com "000webhost"