add or update a cookie . this method adds a cookie , serializing its value using xml . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean checkAutoLogin concode_elem_sep void configureUserSession concode_elem_sep void refreshSession concode_elem_sep void addCookieTemplate concode_elem_sep void prepareTemplateContext concode_elem_sep Cookie getCookieTemplate concode_elem_sep void checkSSO concode_elem_sep Cookie getCookie
void function ( String arg0 , String arg1 ) { int loc0 = 3600 * 24 * 365 ; if ( arg1 == null ) { loc0 = 0 ; arg1 = "srini_string" ; } Cookie loc1 = new Cookie ( arg0 , arg1 ) ; loc1 . setMaxAge ( loc0 ) ; loc1 . setPath ( "srini_string" ) ; JForumExecutionContext . getResponse ( ) . addCookie ( loc1 ) ; }