diff options
author | thomascube <thomas@roundcube.net> | 2011-01-28 16:44:22 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-01-28 16:44:22 +0000 |
commit | cf2da2f9aacd1b13ad9019f44a3f1edd824cd015 (patch) | |
tree | ec2d42a99c635bb03a9d43b86f768166303039dc /index.php | |
parent | 206d45f8840f32efb350aa9f845d39900e003579 (diff) |
Improve session validity check with changing auth cookies; reduce writes to DB; better phpdoc
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -98,7 +98,7 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') { $RCMAIL->session->regenerate_id(); // send auth cookie if necessary - $RCMAIL->authenticate_session(); + $RCMAIL->session->set_auth_cookie(); // log successful login rcmail_log_login(); @@ -141,7 +141,7 @@ else if ($RCMAIL->task == 'logout' && isset($_SESSION['user_id'])) { // check session and auth cookie else if ($RCMAIL->task != 'login' && $_SESSION['user_id'] && $RCMAIL->action != 'send') { - if (!$RCMAIL->authenticate_session()) { + if (!$RCMAIL->session->check_auth()) { $OUTPUT->show_message('sessionerror', 'error'); $RCMAIL->kill_session(); } |