cfleck
tired
so i'm trying my best to figure out how these sessions work with php. seems pretty straightforward, except this one problem that i can't figure out.
the above prints out absolutely nothing. not a thing. not even "hi".
this one works. why? i'm trying to do some things with these session variables but every time i try to access $_SESSION inside a <?php block it does nothing.
PHP:
<?php
// start the session
session_start ();
echo "hi $_SESSION['uid']";
?>
the above prints out absolutely nothing. not a thing. not even "hi".
PHP:
<?php
// start the session
session_start ();
?>
hi <?$_SESSION['uid']?>
this one works. why? i'm trying to do some things with these session variables but every time i try to access $_SESSION inside a <?php block it does nothing.