public class CookieHelper extends Object
| Constructor and Description |
|---|
CookieHelper() |
| Modifier and Type | Method and Description |
|---|---|
static javax.servlet.http.Cookie |
getCookie(String name)
return the first cookie found with this name
|
static void |
replaceCookie(String name,
String value)
Calls
replaceCookie(java.lang.String, java.lang.String, int) with 7776000 ( 3 months) |
static void |
replaceCookie(String name,
String value,
int expiry)
expires all existing cookies with this name and sets a fresh one, so there
will be only one valid cookie with this name.
|
public static void replaceCookie(String name, String value)
replaceCookie(java.lang.String, java.lang.String, int) with 7776000 ( 3 months)name - value - public static void replaceCookie(String name, String value, int expiry)
JsfUtil.contextPath() will be
used as path for he cookie.name - value - expiry - public static javax.servlet.http.Cookie getCookie(String name)
name - Copyright © 2018 Fryske Akademy. All rights reserved.