cookie getmaxage


i can't collect cookie maxage always advantage -1



creating cookie:



cookie securitycookie = new cookie("sec", "somevalue");
securitycookie.setmaxage(expiration_time);


retrieve cookie:



cookie[] cookies = request.getcookies();
if (cookies != null) {
for(int i=0; i<cookies.length; i++) {
cookie cookie = cookies[i];
("sec".equals(cookie.getname())){
int age = cookie.getmaxage();
}
}
}


i am always removing age = -1



also i check firefox cookie genocide i uncanny date.



thx



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?