コード例 #1
0
ファイル: _ide_helper.php プロジェクト: satriashp/tour
 /**
  * Migrates the current session to a new session id while maintaining all
  * session attributes.
  *
  * @param bool $destroy Whether to delete the old session or leave it to garbage collection.
  * @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
  *                       will leave the system settings unchanged, 0 sets the cookie
  *                       to expire with browser session. Time is in seconds, and is
  *                       not a Unix timestamp.
  * @return bool True if session migrated, false if error.
  * @static 
  */
 public static function migrate($destroy = false, $lifetime = null)
 {
     return \Illuminate\Session\Store::migrate($destroy, $lifetime);
 }
コード例 #2
0
ファイル: Guard.php プロジェクト: shinichi81/Nifty-Newsletter
 /**
  * Update the session with the given ID.
  *
  * @param  string  $id
  * @return void
  */
 protected function updateSession($id)
 {
     $this->session->put($this->getName(), $id);
     $this->session->migrate(true);
 }