This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes change cookie value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "change cookie value" Watch "change cookie value" New topic
Author

change cookie value

Amy Saari
Ranch Hand

Joined: Sep 13, 2007
Posts: 30
For those of you having trouble with this. Make sure you put the cookie on the response - even if you're just changing the value. And make sure you have the path correct - if you want the cookie sent on any request to that domain set the path as /. And then make sure you set the maxLength is you want your cookie to stay around after the session.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60787
    
  65

Is there a question in there somewhere?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

That's nice "A Saarii". Thank you

You have to update your display name so as to match with Ranch's Naming Policy. You may please have a look at the Naming Policy here.

You can update your name by editing your profile. It does NOT affect any of your earlier threads except the display name gets updated everywhere.


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Originally posted by Bear Bibeault:
Is there a question in there somewhere?


Bear, i dont know whether this is allowed or not.

It looked like as such he had some information to share.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change cookie value
 
Similar Threads
Using a method to retrieve a cookie
how to set the "remember me" checkbox in the jsp
Can't read cookie from another page!
Cookies not getting reset in Netscape 4.72!!! URGENT!!!
Creating Persistent Cookie In Internet Explorer