src/Http/Cookie/Drivers/CookieDriver.php
/**
	 * Forgets the specified key, effectively removing it from the session.
	 *
	 * @param string $key
	 * @return void
	 */
Forgets the specified key, effectively removing it from the session.
@param string $key
@return void
Forgets the specified key effectively removing it from the session . @param string $key @return void
public function forget($key) {
		if ($this->exists($key)) {
			unset($this->sessionData[$key]);
			if (array_key_exists($key, $_SESSION[$this->token])) {
				unset($_SESSION[$this->token][$key]);
			}
		}
	}
public function forget ( $ key ) { if ( $ this -> exists ( $ key ) ) { unset ( $ this -> sessionData [ $ key ] ) ; if ( array_key_exists ( $ key , $ _SESSION [ $ this -> token ] ) ) { unset ( $ _SESSION [ $ this -> token ] [ $ key ] ) ; } } }
Forgets the specified key, effectively removing it from the session.
Forgets the specified key effectively removing it from the session .
// Remove from session only if it is not flash data