RE: [PHP-GENERAL] Cookies/Remeber password
| From: | Millaway, John | Date: | Tue, 20 Jun 2000 20:47:41 +0000 |
| Subject: | RE: [PHP-GENERAL] Cookies/Remeber password | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2348@lists.php.net to get a copy of this message | ||
> 1.Is it a good idea to save username/password in a cookie?
No, anyone with access to the user's machine can get their password.
> 2.Is there any built-in string encryption methond in PHP?
Yes, http://www.php.net/manual/ref.mcrypt.php
> 3.How do I set a cookie that doesn't expire?
Set the expiration date to several years from now.
http://www.php.net/manual/function.setcookie.php
-John