Liquid Fire Posted August 13, 2007 Share Posted August 13, 2007 Now I just want to know if this is correct, if i store information in my session and i have a javascript cookie class, i can access those session data through cookie, correct because all a session really ism is a cookie, right? Quote Link to comment https://forums.phpfreaks.com/topic/64682-question-about-sessions-and-cookies/ Share on other sites More sharing options...
NArc0t1c Posted August 13, 2007 Share Posted August 13, 2007 Incorrect. A cookie get's stored in the clients browser. A Session get's stored on server an browser. but, anyway, No. Quote Link to comment https://forums.phpfreaks.com/topic/64682-question-about-sessions-and-cookies/#findComment-322524 Share on other sites More sharing options...
Liquid Fire Posted August 13, 2007 Author Share Posted August 13, 2007 Thanks for the information. Quote Link to comment https://forums.phpfreaks.com/topic/64682-question-about-sessions-and-cookies/#findComment-322527 Share on other sites More sharing options...
roopurt18 Posted August 13, 2007 Share Posted August 13, 2007 You can in a round about way. You can create a get_session_val.php script that takes a $_GET param and uses it to reference the $_SESSION value; return it as JSON. You'd access the script with the XHR (ajax) object. Although I'd have to wonder why the script doesn't just pre-load the Javascript with the session values that it needs. Quote Link to comment https://forums.phpfreaks.com/topic/64682-question-about-sessions-and-cookies/#findComment-322606 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.