• Post Reply Bookmark Topic Watch Topic
  • New Topic

persisting cookies

 
Jack pero
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have to create cookies at login page, when the user checks the check box- remember me.
I am able to set the cookies in the browser, but its not fetching it when i close the window and tries to open it again. It's showing - "no cookies available". But the browser shows me previously that the cookies are set.
Could anyone please guide me.
Thanks..
Jack
 
Tim Holloway
Bartender
Posts: 18414
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cookies have a limited lifespan. Make sure that your cookie definition includes an expiration time that's far enough into the future.
 
Jack pero
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried that, i have given it lifetime for two days.
But now its only persisting username when i close the browser and again opens the new browser. It's not persisting password.
And when i changed password field in JSF from <h:inputSecret> to <h:InputText>, it persisted the password as well.
Could you please tell me why is it not persisting password when it is a secret field, and how do i do for that.

thanks,
jack
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!