Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ZkTokenBasedRememberMeServices.java
 
 {{IS_NOTE
 	Purpose:
 		
 	Description:
 		
 	History:
 		Thu Dec 28 09:26:17     2006, Created by Henri
}}IS_NOTE
Copyright (C) 2006 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.zkplus.acegi;

get rememberme from request's attribute rather than request's parameter.

Applicable to Acegi Security version 1.0.3

Deprecated:
As of release 7.0.0
Author(s):
Henri
    protected boolean rememberMeRequested(HttpServletRequest requestString param) {
    	if (isAlwaysRemember()) {
    		return true;
    	}
    	
    	if (param == null) {
    		return false;
    	}
    	
    	Boolean yesno = (Booleanrequest.getAttribute(param);
    	return yesno != null && yesno.booleanValue();
    }
New to GrepCode? Check out our FAQ X