diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-15 22:27:01 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-15 22:27:01 +0000 |
| commit | 00d439535e08de0a3edae10e293772ba2254365a (patch) | |
| tree | abf5772f6d1b9a3af638cee97a8349ee74a90608 /roundcubemail/index.php | |
| parent | e27bbb37108cb246041e1fab317407406e614777 (diff) | |
Keep session alive while showing login page (request token is stored in session data)
git-svn-id: https://svn.roundcube.net/trunk@4609 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
| -rw-r--r-- | roundcubemail/index.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index 440a245c5..21d5d859a 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -154,7 +154,9 @@ else if ($RCMAIL->task != 'login' && $_SESSION['user_id'] && $RCMAIL->action != // not logged in -> show login page if (empty($RCMAIL->user->ID)) { - if ($OUTPUT->ajax_call) + if ($RCMAIL->action == 'keep-alive') + $OUTPUT->send(); + else if ($OUTPUT->ajax_call) $OUTPUT->redirect(array(), 2000); if (!empty($_REQUEST['_framed'])) |
