src/Http/Cookie/Drivers/CookieDriver.php
/**
	 * Rewrites the session payload and flash to include encryption.
	 */
Rewrites the session payload and flash to include encryption.
Rewrites the session payload and flash to include encryption .
private function rewriteEnableEncryption() {
		foreach ($_SESSION[$this->token . '_flash'] as $key => $value) {
			$_SESSION[$this->token . '_flash'][$key] = FastEncrypt::encrypt($value);
		}
		foreach ($_SESSION[$this->token] as $key => $value) {
			$_SESSION[$this->token][$key] = FastEncrypt::encrypt($value);
		}
		$_SESSION[$this->token . '_encrypted'] = true;
	}
private function rewriteEnableEncryption ( ) { foreach ( $ _SESSION [ $ this -> token . '_flash' ] as $ key => $ value ) { $ _SESSION [ $ this -> token . '_flash' ] [ $ key ] = FastEncrypt :: encrypt ( $ value ) ; } foreach ( $ _SESSION [ $ this -> token ] as $ key => $ value ) { $ _SESSION [ $ this -> token ] [ $ key ] = FastEncrypt :: encrypt ( $ value ) ; } $ _SESSION [ $ this -> token . '_encrypted' ] = true ; }
Rewrites the session payload and flash to include encryption.
Rewrites the session payload and flash to include encryption .
// Encrypt flash data // Encrypt payload // Enable encryption