Page 1 of 1

Cookie munster!!!

Posted: Wed Apr 14, 2004 10:01 am
by gloveny2
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

Posted: Wed Apr 14, 2004 10:03 am
by JayBird
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