Cookie munster!!!

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply

Wouldnt it be nice if there was a function in the browser to spin all back slashes for forward ones?

Yes
1
20%
No
0
No votes
What the hell are you talking about
4
80%
 
Total votes: 5

gloveny2
Forum Newbie
Posts: 9
Joined: Wed Mar 31, 2004 10:00 am

Cookie munster!!!

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
Post Reply