- Removed session existence check in killme
- Changed returned value in session_write for empty data
*/
function killme()
{
- global $session_exists;
-
if (!get_app()->is_backend()) {
- if (!$session_exists) {
- session_abort();
- } else {
- session_write_close();
- }
+ session_write_close();
}
exit();
{
global $session_exists, $session_expire;
- if (!$id || !$data) {
+ if (!$id) {
return false;
}
+ if (!$data) {
+ return true;
+ }
+
$expire = time() + $session_expire;
$default_expire = time() + 300;