CookieJar

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.

登录查看完整内容