Omaley Posted February 16, 2016 Share Posted February 16, 2016 (edited) Hi, i want to know how and where (in my module or override of cookie class) to add a new cookie variable and get it. Prestashop don't help me at all. Thank you Edited February 16, 2016 by Omaley (see edit history) Link to comment Share on other sites More sharing options...
safa Posted February 16, 2016 Share Posted February 16, 2016 (edited) sample set new cookie $this->context->cookie->newcookiename =1 read cookie if ( $this->context->cookie->newcookiename == 1) { } regards... Edited February 16, 2016 by safa (see edit history) 1 Link to comment Share on other sites More sharing options...
Omaley Posted February 17, 2016 Author Share Posted February 17, 2016 (edited) One last question about how to set expiration date ? Edited February 17, 2016 by Omaley (see edit history) Link to comment Share on other sites More sharing options...
safa Posted February 18, 2016 Share Posted February 18, 2016 this setting seup in admin panel. http://prntscr.com/a4vzbp admin/admministration / preferences regards.. Link to comment Share on other sites More sharing options...
Omaley Posted February 19, 2016 Author Share Posted February 19, 2016 (edited) Thank you but this is not what i'm looking for. I must set expire time in code, not in administration interfaces. I will try my luck elsewhere. Edit : And this question was answered in the link below This link was very helpfull for me http://stackoverflow.com/questions/26841046/prestashop-1-6-session-cookie-with-smarty Edited February 19, 2016 by Omaley (see edit history) 1 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