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

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 ->
davidj is offline   Reply With Quote