can a cookie still be used after it expires code example
Example: How to make a cookie that dont expires
cookie.setMaxAge(60 * 60 * 24 * 365 * 10);
// Set the age to 10 years
cookie.setMaxAge(60 * 60 * 24 * 365 * 10);
// Set the age to 10 years