Jump to content


Photo

PHP Session Help


  • Please log in to reply
22 replies to this topic

#21 lilywong

lilywong
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 25 July 2006 - 04:22 AM

huh ? i did it there under index.php
session_start();
$cur_user = $_SESSION["cur_user"];

All that does is sets $cur_user to $_SESSION['cur_user']. Where do you assign a value to $_SESSION['cur_user']?


I have already assign the  $_SESSION['cur_user'] in index.php. but it still not working :(

#22 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 July 2006 - 04:22 AM

it doesn't work

No kidding. Your missing the basics. Maybe go find a tutorial on how to use sessions.

#23 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 July 2006 - 04:23 AM

I have already assign the  $_SESSION['cur_user'] in index.php. but it still not working

WHERE? POST THE RELEVENT CODE!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users