Hi , Im really new to PHP and Ive been scowering for some examples for getting cookies, I found plenty of setting examples not not many of getting.
Here's the senario...
A user logs in. With ASP, the database is queried and a cookie is set with user id.
Later on, a PHP files needs to get the cookie and find the user id.
Lets assume the cookie is called manuserid, ... what would the code be in PHP to get that cookie.
Thanks.
Graham
Cookie munster!!!
Moderator: General Moderators
Why the poll and a different question?
And, you can turn backslashes into forward one quite easily
As for setting and reading cookie, read the manual here - http://se.php.net/manual/en/function.setcookie.php
Mark
And, you can turn backslashes into forward one quite easily
As for setting and reading cookie, read the manual here - http://se.php.net/manual/en/function.setcookie.php
Mark