aspose file tools
The moose likes JSF and the fly likes Cookie problems Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Cookie problems" Watch "Cookie problems" New topic
Author

Cookie problems

Predrag Ristic
Greenhorn

Joined: Dec 07, 2009
Posts: 28
I have a simple jsf application and I'm having two very annoying cookie problems.
First one,cookie max age is set to one year when the checkbox on the login page is checked.After clicking on the submit button,on the next page,GetLogged method checks if there is a cookie with username.When it access the cookie its max age is -1 instead of one year.
Second one,when I don't set any value to cookie and after submitting close the browser and reopen it,cookie is still in the browser although it shouldn't.
Can someone help me with these problems?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookie problems
 
Similar Threads
confusing cookies
-1 for timeout and max age
Session Doubt?
Inconsistency in HFSJ (Chapter 6)
How to set JSESSIONID's maxAge?