CookieJar::flushExpiredCookies()

flushExpiredCookies() Removes all expired cookies.

CookieJar::allValues()

array allValues(string $uri, bool $returnsRawValue = false) Returns not yet expired cookie values for the given URI. Parameters string $uri A URI bool $returnsRawValue Returns raw value or urldecoded value Return Value array An array of cookie values

CookieJar::clear()

clear() Removes all the cookies from the jar.

CookieJar::expire()

expire(string $name, string $path = '/', string $domain = null) Removes a cookie by name. You should never use an empty domain, but if you do so, all cookies for the given name/path expire (this behavior ensures a BC behavior with previous versions of Symfony). Parameters string $name The cookie name string $path The cookie path string $domain The cookie domain

CookieClearingLogoutHandler

class CookieClearingLogoutHandler implements LogoutHandlerInterface This handler clears the passed cookies when a user logs out. Methods __construct(array $cookies) Constructor. logout(Request $request, Response $response, TokenInterface $token) Implementation for the LogoutHandlerInterface. Deletes all requested cookies. Details __construct(array $cookies) Constructor. Parameters array $cookies An array of cookie names to unset

CookieJar::allRawValues()

array allRawValues(string $uri) Returns not yet expired raw cookie values for the given URI. Parameters string $uri A URI Return Value array An array of cookie values

CookieJar::all()

Cookie[] all() Returns not yet expired cookies. Return Value Cookie[] An array of cookies

CookieJar

class CookieJar CookieJar. Methods set(Cookie $cookie) Sets a cookie. Cookie|null get(string $name, string $path = '/', string $domain = null) Gets a cookie by name. expire(string $name, string $path = '/', string $domain = null) Removes a cookie by name. clear() Removes all the cookies from the jar. updateFromSetCookie(array $setCookies, string $uri = null) Updates the cookie jar from a response Set-Cookie headers. updateFromResponse(Response $response, string $

Cookie::isExpired()

bool isExpired() Returns true if the cookie has expired. Return Value bool true if the cookie has expired, false otherwise

Cookie::isHttpOnly()

bool isHttpOnly() Checks whether the cookie will be made accessible only through the HTTP protocol. Return Value bool