Class CookieRememberMeManager

java.lang.Object
org.apache.shiro.mgt.AbstractRememberMeManager
org.apache.shiro.web.mgt.CookieRememberMeManager
All Implemented Interfaces:
org.apache.shiro.mgt.RememberMeManager

public class CookieRememberMeManager extends org.apache.shiro.mgt.AbstractRememberMeManager
Remembers a Subject's identity by saving the Subject's principals to a Cookie for later retrieval.

Cookie attributes (path, domain, maxAge, etc.) may be set on this class's default cookie attribute, which acts as a template to use to set all properties of outgoing cookies created by this implementation.

The default cookie has the following attribute values set:

Attribute Name Value
name rememberMe
path /
maxAge Cookie.ONE_YEAR

Note that because this class subclasses the AbstractRememberMeManager which already provides serialization and encryption logic, this class utilizes both for added security before setting the cookie value.

Since:
1.0