View Single Post
  #3 (permalink)  
Old July 3rd, 2004, 05:21 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

The other method (which I forgot to mention) is to give $_SESSION['authuser'] a value if it doesn't exist.

if (!isset($_SESSION['authuser'])) {
    $_SESSION['authuser'] = 0;
}

Add this before you use $_SESSION['authuser'] and after the call to session_start(). IMO, both are equally valid ways around the error.


Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
Reply With Quote