| java.lang.Object com.ecyrd.jspwiki.auth.login.AbstractLoginModule com.ecyrd.jspwiki.auth.login.CookieAuthenticationLoginModule
Field Summary | |
final protected static String | COOKIE_DIR The directory name under which the cookies are stored. | final public static String | PROP_LOGIN_EXPIRY_DAYS User property for setting how long the cookie is stored on the user's computer.
The value is
. |
COOKIE_DIR | final protected static String COOKIE_DIR(Code) | | The directory name under which the cookies are stored. The value is
.
|
PROP_LOGIN_EXPIRY_DAYS | final public static String PROP_LOGIN_EXPIRY_DAYS(Code) | | User property for setting how long the cookie is stored on the user's computer.
The value is
. The default expiry time is 14 days.
|
clearLoginCookie | public static void clearLoginCookie(WikiEngine engine, HttpServletRequest request, HttpServletResponse response)(Code) | | Clears away the login cookie, and removes the uid-username mapping file as well.
Parameters: engine - WikiEngine Parameters: request - Servlet request Parameters: response - Servlet response |
setLoginCookie | public static void setLoginCookie(WikiEngine engine, HttpServletResponse response, String username)(Code) | | Sets a login cookie based on properties set by the user. This method also
creates the cookie uid-username mapping in the work directory.
Parameters: engine - The WikiEngine Parameters: response - The HttpServletResponse Parameters: username - The username for whom to create the cookie. |
|
|