Jump to content

i need help with sessions


Recommended Posts

i my prestashop i wanna use my own session variables but when i use clasic session
$_SESSION['something'] = 123; it works just in the same php folder where i placed it but when i want work in the other php
files of presta with this there in nothing value saved.
can you help me???

sorry for my englis

Link to comment
Share on other sites

I just tried on my test site, it works fine.

In this php, I just save the current time to session and also print it out to browser.
http://expresscheckout.dyndns.org:8080/shop1323/test1.php

In this page, I just print our time saved in session to browser.
http://expresscheckout.dyndns.org:8080/shop1323/upload/test2.php

As you can see, the two scripts are in different folders
I attached the two script in this post for your reference. You can also try this simple script first to see if it works or not.

I think it could environment issue. It's difficult to figure out.
Hope someone else could give you some better advice.

test1.php

test2.php

Link to comment
Share on other sites

×
×
  • Create New...