I use the Recess Framework for my application and worry about session processing. I need to save some values ββin a session. I can create a session id and session id. But as soon as I go to another page, I canβt get them back! How do you manage people? Processing PHP sessions is simple and straightforward .. but I'm just not able to get it right!
In my home controller, I have:
function index() {
.
.
session_start();
$_SESSION['val'] = 'SomeValue';
.
.
}
My view displays a different form, and when the user submits, I also need to access the val session. Therefore, I am trying to return a value like:
function check() {
if(isset($_SESSION['val'])){
.
.
.
}
}
But, unfortunately, I do not enter the if block. I donβt see my error. I tried to display the session using session_id (), as well as its empty value in the check () method.
, , , session_id ! PHP? , !