Changeset 4609 in subversion


Ignore:
Timestamp:
Mar 15, 2011 6:27:01 PM (2 years ago)
Author:
thomasb
Message:

Keep session alive while showing login page (request token is stored in session data)

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/index.php

    r4600 r4609  
    155155// not logged in -> show login page 
    156156if (empty($RCMAIL->user->ID)) { 
    157   if ($OUTPUT->ajax_call) 
     157  if ($RCMAIL->action == 'keep-alive') 
     158    $OUTPUT->send(); 
     159  else if ($OUTPUT->ajax_call) 
    158160    $OUTPUT->redirect(array(), 2000); 
    159161 
  • trunk/roundcubemail/program/js/app.js

    r4608 r4609  
    54325432    if (this.env.keep_alive && !this.env.framed && this.task == 'mail' && this.gui_objects.mailboxlist) 
    54335433      this._int = setInterval(function(){ ref.check_for_recent(false); }, this.env.keep_alive * 1000); 
    5434     else if (this.env.keep_alive && !this.env.framed && this.task != 'login' && this.env.action != 'print') 
     5434    else if (this.env.keep_alive && !this.env.framed && this.env.action != 'print') 
    54355435      this._int = setInterval(function(){ ref.send_keep_alive(); }, this.env.keep_alive * 1000); 
    54365436  }; 
Note: See TracChangeset for help on using the changeset viewer.