hello, everyone im working on my masters thesis, i need little help. if anyone can help me with cookies methods. i want to implement cookies in my website through PHP, im nt that much expert in php.how can i do that ??? please
soomro_moon 0 Light Poster
Recommended Answers
Jump to Post
setcookie()
is used to write a cookie in PHP. However, you cannot retrieve the info from the cookie you just set until another page has been accessed.
We read a cookie from the$_COOKIE
superglobal var.JS can read/write the same cookies. You dont have to use JS. You don't …
Jump to PostYou're missing a ] in the conditional statement in line 10
This script will return an error due to cookie not set on line 16. It should work on page reload though.
All 6 Replies
Taywin 312 Posting Virtuoso

diafol
matrixdevuk 71 6t9.me Founder

diafol
matrixdevuk commented: Good eye. +3
matrixdevuk 71 6t9.me Founder
soomro_moon 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.