diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-28 16:44:22 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-28 16:44:22 +0000 |
| commit | e80ab69507e07470d1b983630dbc05416a8f98ee (patch) | |
| tree | 5736819e455ad24376fa9eeb716e06b4ae9f83a7 /roundcubemail/index.php | |
| parent | 485bad56be981938358d3c4425063fc15b3f5a7b (diff) | |
Improve session validity check with changing auth cookies; reduce writes to DB; better phpdoc
git-svn-id: https://svn.roundcube.net/trunk@4466 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
| -rw-r--r-- | roundcubemail/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index 3d57571a4..a80e76d68 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -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(); } |
