Does PHP cookies store at client's computer? I can't seem to find it. Or at the server side?
client
php's cookie functions all manipulate a cookie on the client's computer
but just like a cookie php can sotre small bits of infomation on the server... usually mapped to an id stored inthe clients computer
these would be [man]session[/man]s
Hi, can tell me where is the cookies? I tried to find in C:\Documents and Settings\shelbytll\Cookies but does not exist. Or is it in C:\PHP\tmp ?
if you don't set the expiration time, the cookie lasts until the browser is closed, and it is not written to hard disk.
But I was finding the cookie file before I close my browser.
okay, let's rephrase: it may not be written to hard disk.
however, if you don't set the expiration time, the cookie is supposed to be deleted when the client closes the browser.
or do you set the expiration time?
I did not set the expiration time. When I log into the web site, my UserID is stored in a cookie. So immediately after I log in, I went to search for the cookie. But can't find. Note that I have not close my browser yet.