White screen when session times out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
1.10 |
Fix Released
|
High
|
Unassigned | ||
1.9 |
Fix Released
|
High
|
Unassigned | ||
15.04 |
Fix Released
|
High
|
Unassigned | ||
16.04 |
Fix Released
|
High
|
Unassigned |
Bug Description
Issue with 15.10
If you are logged into mahara and leave the site open in a browser for some time when you come back and try to navigate somewhere you can end up with a white blank screen - on refresh of page all works fine.
The problem is this:
PHP Fatal error: auth_generate_
Which deals with the line:
return get_login_
In earlier Mahara you would instead be given (via js) a popup login box.
no longer affects: | mahara/15.10 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
From what I have read the problem seems to be this:
The automatic $_SESSION serialization/ unserialization occurs when you call session_start().
That means the order in which you include your files and call the session_start() is very important.
Eg
BAD: once('pieforms/ pieform. php');
session_start();
require_
GOOD: once('pieforms/ pieform. php');
require_
session_start();
One possible solution is to use the session_ write_close( ), then session_start()