Posted by Mike on 07/02/06 18:43
I have a form where a user logs in and after they log in, it stores
their id from the MySQL database to a session together with a "logged
in = true" var.
On every page you have to be logged in, it checks that "logged in =
true". If then for example it was a page that displays that users
personal details, it will search the database for the id that is stored
in the session and pull all the data about that person.
This is one way to do it. Storing all the users details to sessions
when they log in is another way. What would be best??
Thanks
Mike
Navigation:
[Reply to this message]
|