Hy!
I am writing a module where I would need some things to save in the session.
I am using normal PHP session variable ($_SESSION[“mymodule.something”]). The thing saves in the session temporary. When I refresh the page, data that I saved with this variable is gone. (null)
Is OXID preventing to save your own data to own session variable?
var_dump($_SESSION["module.sessionData"]);
$_SESSION["module.sessionData"] = $data;
var_dump($_SESSION["module.sessionData"]);
When I refresh the page, the output of first var_dump is always null.
I am working in constructor. And parent class doesn’t have it.
Now i also tried with OXID’s oxSession class and it stil don’t work.
$sess = oxSession::getVariable("asd");
var_dump($sess);
oxSession::setVariable("asd", "qwe");
$sess = oxSession::getVariable("asd");
var_dump($sess);die();
Thank you!