Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 4th, 2007, 05:16 AM
Registered User
Join Date: Oct 2007
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cookie problem

cookie = new Cookie("Password_" + domainUrl + "_" + serverUser,

immediately after setting cookie i need to print it out.While printing am getting only some intial value , cant able to retrive the cookie which i set lastly.
After refreshing the i can able to see all the cookie... Actually wht is problem there.. can any one help me.?

Reply With Quote
  #2 (permalink)  
Old November 5th, 2007, 05:55 AM
Friend of Wrox
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

When you set/update a cookie it'll be available to read only after the browser gets loaded with the target url. Once this is done you can access the updated values from next request onwards.

- Rakesh
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookie problem Raptor-X ASP.NET 2.0 Basics 0 November 16th, 2006 08:58 AM
Cookie Problem jobiweb ASP.NET 1.0 and 1.1 Basics 0 May 12th, 2005 06:10 AM
COOKIE problem Buravik PHP How-To 2 May 9th, 2004 08:47 AM
Session cookie problem rogierio Classic ASP Professional 0 October 15th, 2003 09:50 AM
cookie problem bluewater68 Classic ASP Professional 0 August 26th, 2003 06:18 AM

All times are GMT -4. The time now is 12:29 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.