Hi,
I have a value in a session variable,
if I try to trying to print the content of the variable in a test file I have a value in the variable.
If I try printing the variable from a page of moodle the variable is unset, is there any way moodle is killing all session variables that he doesn't need?
This is the process I am trying to do,
I have a table of all the users in the course the teacher click on one of them and then the id of the student is sent to a php file and start a session variable with the userid, after I click on userid 5 for example I can see this value only in new pages that I create but not in moodle pages, any idea how I can solve the problem?
If I put the code in the head of a moodle page then I can see the value only if I kill the page after I print the value,
otherwise I get an error:
Error code: dbsessionhandlerproblem
- line 476 of /lib/setuplib.php: moodle_exception thrown
- line 530 of /lib/sessionlib.php: call to print_error()
- line 182 of /lib/sessionlib.php: call to database_session->init_session_storage()
- line 482 of /lib/sessionlib.php: call to session_stub->__construct()
- line 66 of /lib/sessionlib.php: call to database_session->__construct()
- line 755 of /lib/setup.php: call to session_get_instance()
- line 25 of /config.php: call to require_once()
- line 24 of /mod/scorm/view.php: call to require_once()