[SOLVED] Using Sessions in Included Pages
Posted: Thu Jul 29, 2004 8:15 pm
I'm having trouble right now. First off, on every page of my website I include navigation.php. On navigation.php i'm trying to use an UPDATE query that involves a session. My query does work, but not in an include. I tried a simple code snippet to check if I could even use sessions in an include by doing this:
Once I logged in, it said "That's not good" even though the session IS set. Am I just doing something wrong or can you not use sessions on a page thats included in general?[/php_man]
Code: Select all
<?php
if(!$_SESSION['user'])
{
echo "That's not good";
}
else
{
echo "Whew";
}
?>