theillo Posted March 15, 2015 Share Posted March 15, 2015 Just want to do some stuff for which I would normally use $_SESSION. I'd know its secure on the server, uniquely assigned for each user. Just want to make sure that context->cookie behaves the same way - meaning nothing is stored locally, and nothing can be modified or accessed by a tech savvy user. Does anybody know? Link to comment Share on other sites More sharing options...
Raphaël Malié Posted March 16, 2015 Share Posted March 16, 2015 Hello, context->cookie is a wrapper for $_COOKIE. So it will be stored locally on the computer 1 Link to comment Share on other sites More sharing options...
theillo Posted March 19, 2015 Author Share Posted March 19, 2015 Oops, not what I was hoping for... I guess they talk about how to use the session instead, here: https://www.prestashop.com/forums/topic/287422-how-to-store-a-var-in-the-session/ so I'll just be doing this: if(!isset($_SESSION)) { session_start(); } $_SESSION['myvar'] = $myval; 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