alecpl
2011-03-08 c294eaa3f27ca5f38101eb4a1692111ac0ee82f8
program/include/rcube_session.php
@@ -205,15 +205,15 @@
  /**
   * Generate and set new session id
   *
   * @param boolean $destroy If enabled the current session will be destroyed
   */
  public function regenerate_id()
  public function regenerate_id($destroy=true)
  {
    // delete old session record
    $this->destroy(session_id());
    $this->vars = false;
    session_regenerate_id($destroy);
    session_regenerate_id(false);
    $this->key = session_id();
    $this->vars = false;
    $this->key  = session_id();
    return true;
  }