Esempio n. 1
0
 /**
  * Delete a session from storage by a given ID.
  *
  * @param  string  $id
  * @return void
  */
 public function delete($id)
 {
     \Laravel\Cookie::forget(Cookie::payload);
 }
Esempio n. 2
0
 /**
  * Test the Cookie::forget method.
  *
  * @group laravel
  */
 public function testForgetSetsCookieWithExpiration()
 {
     Cookie::forget('bar', 'path', 'domain');
     // Shouldn't be able to test this cause while we indicate -2000 seconds
     // cookie expiration store timestamp.
     //$this->assertEquals(-2000, Cookie::$jar['bar']['expiration']);
     $this->assertEquals('path', Cookie::$jar['bar']['path']);
     $this->assertEquals('domain', Cookie::$jar['bar']['domain']);
     $this->assertFalse(Cookie::$jar['bar']['secure']);
 }
Esempio n. 3
0
 /**
  * Delete a session from storage by a given ID.
  *
  * @param  string  $id
  * @return void
  */
 public function delete($id)
 {
     C::forget(Cookie::payload);
 }