OZONE Asylum
FAQ
How do I set and read cookies in PHP?
This page's ID:
5537
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "How do I set and read cookies in PHP?"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
This is much simpler to do than the JavaScript method. Use the setcookie() function. The cookie can, after the next page load, be read via the $_COOKIES variable. Setting cookies can be tricky, be sure to specify at least a path of the optional parameters, or your cookies will not work in some older browsers. ------------------------------ Relevant links: [url=http://www.php.net/setcookie]setcookie()[/url] ------------------------------ Relevant FAQs: [internallink=5536]How do I set and read cookies in JavaScript?[/internallink] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Tyberius+Prime]Tyberius Prime [/url] on Tue 04-Feb-2003)[/i][/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »