dsdsdsdsd Posted January 7, 2011 Share Posted January 7, 2011 hello; it seems strange that php can set cookies, since php is on the serer-side, but the cookies are on the client-side ... is there something that I am missing? Quote Link to comment https://forums.phpfreaks.com/topic/223687-why-use-php-for-cookies/ Share on other sites More sharing options...
Pikachu2000 Posted January 7, 2011 Share Posted January 7, 2011 Cookies are set via an HTTP header, and those headers are generated server-side. Quote Link to comment https://forums.phpfreaks.com/topic/223687-why-use-php-for-cookies/#findComment-1156263 Share on other sites More sharing options...
Maq Posted January 7, 2011 Share Posted January 7, 2011 hello; it seems strange that php can set cookies, since php is on the serer-side, but the cookies are on the client-side ... is there something that I am missing? If you haven't, read this: http://php.net/manual/en/features.cookies.php Quote Link to comment https://forums.phpfreaks.com/topic/223687-why-use-php-for-cookies/#findComment-1156270 Share on other sites More sharing options...
dsdsdsdsd Posted January 7, 2011 Author Share Posted January 7, 2011 so, basically, when I call page: step 1 - my browser identifies the domain to which I am calling, step 2 - looks for any cookies on my system that belong to that domain step 3 - adds the cookie data to the request object step 4 - sends the request to the server Quote Link to comment https://forums.phpfreaks.com/topic/223687-why-use-php-for-cookies/#findComment-1156274 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.