NuttyMonk Posted March 14, 2012 Share Posted March 14, 2012 The default PHP Session name on my webspace server is PHPSESSID. Does that mean that the session cookie will be called PHPSESSID? The reason i ask is that in a couple of places i can't use PHP to update the information in the session cookie (because PHP is parsed before the webpage loads) and so i need to use Javascript to update a cookie which i would prefer to be the session cookie used by PHP. I guess i'm asking what the name of the cookie is, how i would refer to it in Javascript (if that is even possible) so that i can update it and whether this would cause any issues with the info already stored in the session cookie by PHP. Cheers NM Quote Link to comment https://forums.phpfreaks.com/topic/258918-php-session-cookie-names/ Share on other sites More sharing options...
scootstah Posted March 14, 2012 Share Posted March 14, 2012 The only data in the cookie is the session ID. Not sure why you would want to change that with Javascript. Quote Link to comment https://forums.phpfreaks.com/topic/258918-php-session-cookie-names/#findComment-1327355 Share on other sites More sharing options...
ManiacDan Posted March 14, 2012 Share Posted March 14, 2012 Right, the session cookie does nothing but hold a KEY to a file on your server, which contains the actual session information. Quote Link to comment https://forums.phpfreaks.com/topic/258918-php-session-cookie-names/#findComment-1327366 Share on other sites More sharing options...
NuttyMonk Posted March 14, 2012 Author Share Posted March 14, 2012 Ah, ok. I thought it also held all of the data, not just the session ID. Thanks for you help. Cheers NM Quote Link to comment https://forums.phpfreaks.com/topic/258918-php-session-cookie-names/#findComment-1327377 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.