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
doc_Symfony
2016-10-28 06:12:21
Comments
Leave a Comment

Please login to continue.