Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookie problems  RSS feed

Predrag Ristic
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!