This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to delete/remove cookies ?

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an object in session and when retrieve it and populate it into the form, some previously information are displayed.
(This happens only on Explorer)

I do this: Tools->internet Option-->delete->delete cookies ...refresh and I see the real object's data (the one I requested) in the form

Question: How to avoid that or delete the cookies before populating it into the form? should that be done in the view/jsp or action?

thanks
 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More importantly, why are you using cookies to store application data?

Cookies are
1) Not reliable - may or may not exist
2) Not secure - may or may not be changed by the user

Google something like "clear cookies javascript" for the answer to your question.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could also be that the session id is what is being stored as a cookie (this is very common). By deleting your cookies, you will get a brand new session the next time you hit a page. If you are storing your forms in session, I suspect that this is the cause of you problem.

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic