Thread: Session Help!!
View Single Post
  #1 (permalink)  
Old May 18th, 2004, 07:59 AM
kdesilva kdesilva is offline
Registered User
Join Date: Dec 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session Help!!

I have some code that changes links once the user logs in, however it's not working properly. For example there is a link called "Register" (with the url/register.php) that should change to Member Area (with the url /member.php) once there is a valid session (the user has logged on) .. however it's not working, perhaps someone can see an error in the code?

This is for the Session check:


if (!$special_mode)
$is_mem = $_SESSION["valid_user"];

This is to do the switch:

if ($is_mem <> "")
echo "<a href=\"http://$url/member.php\">$la_member_area</a>";
echo "<a href=\"http://$url/register.php\">$la_reg</a>";

Reply With Quote