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 Cookie 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 "Cookie" Watch "Cookie" New topic
Author

Cookie

Johnson Chong
Ranch Hand

Joined: Mar 16, 2001
Posts: 210
May I know how to extract the token from a cookie using Java


-Surfing the JavaRanch in a sunny garden with a cold drink and laptop can't be beat. by Frank Carver(sheriff)
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
I've used this code for testing in a servlet, where request is a HttpServletRequest object.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

here is another example. assume all variables have been declared.


SCJP
Visit my download page
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookie
 
Similar Threads
Famous Quotes
How to set JSESSIONID's maxAge?
WA #1.....word association
Not able to post
Cookies using Jsp