Jump to content

[HELP] How to store a var in SESSION?


Recommended Posts

I saw some topics in this forum. It's said Prestashop 1.5 doesnt use $_SESSION.

They recommend to use 

$cookie->myvar = myvalue 

to store var.

 

I tried, but it is stored in the cookie, and value cannot be array, but only string.

Meanwhile, I want the var expires when the session is over.  But according to the method above, when I close brower, open it again, the var is still there.

 

So, how does Prestashop1.5 simulate the SESSION?

Any help would be very appreciated.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...