This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes cookie setting in HTTPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "cookie setting in HTTPS " Watch "cookie setting in HTTPS " New topic
Author

cookie setting in HTTPS

Amit More
Greenhorn

Joined: Oct 16, 2003
Posts: 24
Hi friends,
For HTTP, I am creating one cookie object and setting the required parameters. The code looks like below:

Cookie cookie = new Cookie("Ispace_Auth", s19);
cookie.setDomain(sCookieDomain);
cookie.setPath("/");
cookie.setMaxAge(14400);
httpservletresponse.addCookie(cookie);
Here no problem with HTTP.
But when for same code I am trying to access files through internet over HTTPS, cookie is not getting created and hence giving me further problem. But if I am using URL rewriting then I can view my site and no problem.
But I dont want to use URL rewriting and hencforth wants to create cookies.
Is there any way to set the cookies for HTTPS server? Or can you provide some help under the cookie setting in Https server?
I am using Apache-Tomcat.
Its urgent. So please help me out.


Thanks,<br />Amit
 
GeeCON Prague 2014
 
subject: cookie setting in HTTPS