This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookie problems

 
Predrag Ristic
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Your mind is under my control .... your will is now mine .... read this tiny ad
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!