PDA

View Full Version : sessions


edbr
09-21-2007, 06:25 AM
I got brain freeze about this. I am trying to make an 'edit page' for members.So far i have their records displayed , selected by their user Id.
I have made a link for the records to be edited identified by the record ID ie
'editpage.php?recordID = '
I would like to carry the session user id as well, but can't work this out.

davidj
09-21-2007, 06:47 AM
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


echo $_SESSION['user_id'];

edbr
09-21-2007, 07:20 AM
sorry you mean on the edit page if I include session_start();
thats it?