Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookies....  RSS feed

 
Frank Tollenaar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a big problem with sending back cookies to the server.
I have put them when the servlet send them in a string. Each cookies separated by a semi-colon. This worked fine.
The problem is when I want to send back the cookies it seems it doesn't take it.
To send them back i do the following :
URL newURL = new (http://something);
objURLConnection = newURL.openConnection();
objURLConnection.setRequestProperty("cookie", myCookieString);
objURLConnection.connect();
When I check the cookies, I have a new session. It didn't take my old one.
Can anyone give me a clue on what is happening?
Thanks in advance
 
Frank Tollenaar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget my post, I found a solution.
 
Andy Page
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can u post the code. I am working on similar thing.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!