public class CookieProvider extends Provider
Provider implementation which saves state via
cookies.| Constructor and Description |
|---|
CookieProvider(String path,
Date expires,
String domain,
boolean secure)
Creates a new cookie provider
|
public CookieProvider(String path, Date expires, String domain, boolean secure)
path - The path for which the cookie is active (defaults to root '/'
which makes it active for all pages in the site)expires - the cookie expiration date (defaults to 7 days from now)domain - The domain to save the cookie for. Note that you cannot
specify a different domain than your page is on, but you can
specify a sub-domain.secure - true if the site is using SSLCopyright © 2012. All Rights Reserved.