Thread: sessions
View Single Post
Old 09-21-2007, 05:47 AM   #2
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

session user_id should be set from when the user logs in

to access it just use session_start(); at the top of the page then just treat it as a normal var

PHP Code:
echo $_SESSION['user_id']; 
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote