note 53970 added to function.setcookie
| From: | bubazoo at yahoo dot com | Date: | Sun, 19 Jun 2005 11:30:14 +0000 |
| Subject: | note 53970 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90648@lists.php.net to get a copy of this message | ||
I am confused about something,
when you want to save $_SESSION data to a cookie,
don't you use session_register?
or do you have to store $_SESSION['stuff'] = $variable
then setcookie('$variable') ?
I don't understand.
someone told me session_register already stores the session into a cookie, so I am confused on that
part.
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53970
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53970&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53970&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53970&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53970&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+53970&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53970&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53970&report=yes
Search -- http://master.php.net/manage/user-notes.php