note 94621 deleted from function.setcookie by danbrown
| From: | danbrown@php.net | Date: | Sun, 15 Nov 2009 15:35:57 +0000 |
| Subject: | note 94621 deleted from function.setcookie by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162932@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at mygrworld dot com
----
@Eric: A better idea to avoid storing data in cookies is to pass a random key as a parameter. This
key is used to reference the data held in a database record.
This means that before the form is called, a database record with that key is created/updated to
store that data. On receipt of the call with the key, the PHP routine can extract the data from the
database.