If you don't set an expiry date, though, the cookie will be deleted when the session ends - so, cookies without expiry dates are session-length cookies.
Exactly what I was looking for. I just wanted to make sure the session cookies were in the client's memory and not the server. So they are in the client's memory is what you are saying? Rob
Just my $.02.
Here is some info from DevGuru regarding cookies and their expiration:
Expires is write-only and is the date on which the cookie expires. Unless a date is specified, the cookie will expire when the session ends. If a date is specified, the cookie will be stored on the client's disk after the session ends.
That brings me back, kinda, to my original question. If you don't put Expire on the cookie, does it use the clients memory or the servers memory? I don't want to load my server down. Rob
Just my $.02.
The clients memory is the only thing that is utilized no matter how you set the attributes. I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
Cookies are nothing more than small text files, they are sent from the server to the client and stored there. The client send them back with every page request for the use of the server.
Cookies are never stored on the server, however, if you are using PHPs sessions the variables defined _will_ use some hdd space on your server to keep the variables. This does have the plus of your scripts being a little more secure because all the client gets is a unique identifier to distinguish which text file to use.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.