Page 1 of 1
php sessions+mysql help please.
Posted: Wed Jun 04, 2008 10:39 am
by syntax24
Can someone get me started on how I can allow users to login connected from a database... and once logged in, I can pull their user data with a simple sql query.... like all of their information in their table.... though sessions would be easier. Where can I learn how to setup a mysql php login and then use sessions/cookies?
thanks.
Re: php how to?
Posted: Wed Jun 04, 2008 11:12 am
by panic!
If you tried using a more descriptive title more people might open your thread and help you.
Re: php sessions+mysql help please.
Posted: Wed Jun 04, 2008 12:54 pm
by RobertGonzalez
There are so many ways that you can go about doing what you want to do. Essentially you are going to need to create sessions code that mimics the performance routines of the native PHP session handling. So that means you would need a session_start, session_end and then something in your code that would handle session updating of the critical pieces of the session data that you are tracking.
It is not hard to do, but will depend greatly on what you are after. This can be done in a lot of different ways.