protected void removeExpiredPortletCookies ( HttpServletRequest request ) { Map < String , SessionOnlyPortletCookieImpl > sessionOnlyCookies = getSessionOnlyPortletCookieMap ( request ) ; for ( Entry < String , SessionOnlyPortletCookieImpl > entry : sessionOnlyCookies . entrySet ( ) ) { String key = entry . getKey ( ) ; SessionOnlyPortletCookieImpl sessionOnlyCookie = entry . getValue ( ) ; if ( sessionOnlyCookie . getExpires ( ) . isBeforeNow ( ) ) { sessionOnlyCookies . remove ( key ) ; } } }
Remove expired session only portlet cookies .