denisko Posted April 1, 2011 Share Posted April 1, 2011 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 More sharing options...
shokinro Posted April 2, 2011 Share Posted April 2, 2011 please make sure you have session_start on all pages the uses session. Link to comment Share on other sites More sharing options...
denisko Posted April 2, 2011 Author Share Posted April 2, 2011 ok thanks i try it . Link to comment Share on other sites More sharing options...
denisko Posted April 2, 2011 Author Share Posted April 2, 2011 shokinro i try it but don't work,session is emty.( Link to comment Share on other sites More sharing options...
shokinro Posted April 2, 2011 Share Posted April 2, 2011 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.phpIn this page, I just print our time saved in session to browser.http://expresscheckout.dyndns.org:8080/shop1323/upload/test2.phpAs you can see, the two scripts are in different foldersI 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 More sharing options...
Recommended Posts