hisoka Posted February 18, 2015 Share Posted February 18, 2015 (edited) if I have setcookie(user , brock , time() + 40000); does the cookie become like this: cookie = userbrock40000 ???? Edited February 18, 2015 by hisoka Link to comment Share on other sites More sharing options...
justsomeguy Posted February 18, 2015 Share Posted February 18, 2015 When the server tells the browser to set a cookie, it sends a header which looks like this: Set-Cookie: modpids=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/In that case, the name of the cookie is modpids and the value is deleted. It has other properties also, an expiration date and a path. There are other properties it could set as well.When the browser sends the cookie back to the server, it will send a header that looks like this:Cookie: modpids=deletedThe browser will only send the name and value back to the server. 1 Link to comment Share on other sites More sharing options...
hisoka Posted February 19, 2015 Author Share Posted February 19, 2015 Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now