PhP - Retreiving session Id's?

Memphis

New member
Hi,

How can I retreive a session Id?

Basically I would like my user to log in, and then on the next page have it say "Hi, (Firstname), welcome back" etc.

I would like to retreive the persons first name from my database by looking up their session id after their username and password have been matched.

When their username and password are checked, a session is started and the session ID is saved to the database (MD5). I would ideally like to be able to draw upon either the customers details or current session id from the database to display users information on the next page. However I cannot seem to get it right, have tried several different things.

Does anyone know how to go about doing this?

Thanks
Cookies are the way to go then, many thanks!
Also,

Is there a way to get around this if a user has cookies disabled?
Also,

Is there a way to get around this if a user has cookies disabled?
 
Back
Top