Re: Using a mysql data base and cookie to log a person in
| From: | Steve Edberg | Date: | Wed, 20 Feb 2002 17:16:25 +0000 |
| Subject: | Re: Using a mysql data base and cookie to log a person in | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85553@lists.php.net to get a copy of this message | ||
Have you considered PHPLIB?
http://phplib.sourceforge.net/
http://sourceforge.net/projects/phplib
http://www.sanisoft.com/phplib/manual/
The docs'll give you an idea of how they did it. The code is pretty complex, though, but it does a lot. I'd suggest using this as a base, if PHP4's session handling isn't sufficient. I use it, with my own hacks for my authorization needs.
-steve
At 8:38 AM -0800 2/20/02, Brandon Orther wrote:
Hello, I loosely understand how I can have a person login to a system by giving them a cookie with a certain amount of time with a encrypted code. And save that same encrypted code in the database for a certain amount of time. I am looking for a tutorial on how to do this so I can wrap my mind around it a little better. If anyone knows a good tutorial on how to log people into your site using a userser database please hook me upZ wiT da Inf0z -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager brandon@webintellects.com 800-994-6364 www.webintellects.com ---------------------------------------------- +------------------------------------------------------------------------+ | Steve Edberg sbedberg@ucdavis.edu | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http://pgfsun.ucdavis.edu/ | +------------------------------------------------------------------------+ | "Restriction of free thought and free speech is the most dangerous of | | all subversions. It is the one un-American act that could most easily | | defeat us." | | - Supreme Court Justice (1939-1975) William O. Douglas | +------------------------------------------------------------------------+