my dog learned polymorphism*
The moose likes Tomcat and the fly likes Cookies not getting set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cookies not getting set" Watch "Cookies not getting set" New topic
Author

Cookies not getting set

Rolf Johansson
Ranch Hand

Joined: Feb 25, 2004
Posts: 32
I am running apache 2.2.4 on Red Hat. I need to set 2 cookies, then redirect the request. The redirect is working, but the cookies are not being set. In order to debug this, I wrote a simple Perl CGI that sets 2 cookies, then redirects to another Perl CGI on the same server which reads all cookies.
Here is the CGI that sets the cookies and performs the redirect (note: domain name changed to protect the innocent)


The redirect occurs and this CGI reads all cookies, but the 2 cookies set above are never found:


Is there an apache config / directive that I need to set?
Any help is appreciated.
 
jQuery in Action, 2nd edition
 
subject: Cookies not getting set
 
Similar Threads
How to delete a cookie from Request (age old question never answered)
How far can you take HttpURLConnection
creating cookies across domains
Retrieving Cookies
Cookie Help