Re: Using cookies with PHP
| From: | Richard Lynch | Date: | Mon, 29 Jul 2002 08:06:51 +0000 |
| Subject: | Re: Using cookies with PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110117@lists.php.net to get a copy of this message | ||
>Does anyone have examples on how to use cookies with PHP?
Yes.
The manual has examples. Lots.
And there are a ton of them on every PHP code archive I've ever seen.
>I'm just getting
>into this and would like to know the difference between
>stored cookies and non-stored per session cookies.
Stored cookies have a "time limit"
Session cookies have no "time limit", so they just die when the browsers
closes.
>Does PHP support both?
Yes. You'd have to work at it pretty hard and be pretty stupid about it to
write a language that only supported one or the other...
Not even Microsoft could manage that one, mostly, I think.
Though you *DO* have to provide *BOTH* time out *and* path for some versions
of IE, if you want a cookie to last. Just the time won't work. Stupid IE.
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro). Need to record live events (mixed already) to stereo
CD-quality. Soundcard Recommendations?
Software to handle the recording? Don't need fancy mixer stuff. Zero (0)
post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
audio-to-disk.