• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

want add cookies to make sso

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,all:
I want to use response.addCookies() method to add Cookies which I get from a backend system.
and after I execute response.sendRedirect("url of backend system") method ,I can direct go to the backend system without log in.But it seems don't work.
I get two cookies :
one is :TempGuid=F2FA1E7C%2DC452%2D4880%2D81ED%2D3D6790D9A922; expires=Wed, 24-Mar-2004 10:38:40 GMT
other is :ASPSESSIONIDCATQRDCS=JCKFDHDCJHOLNENLCPLPFKPJ
I first create new Cookies like this:
Cookies newc = new Cookies(TempGuid,F2FA1E7C%2DC452%2D4880%2D81ED%2D3D6790D9A922);
Cookies newc2 = new Cookies(ASPSESSIONIDCATQRDCS,JCKFDHDCJHOLNENLCPLPFKPJ);
then I add Cookies to the response:
response.addCookies(newc);
response.addCookies(newc2);
last :
response.sendRedirect("url of backend system");
any one should give me any advice ? thanks in advance !
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cookies can't be seen from a different server. You will need to find another way to pass the information.
reply
    Bookmark Topic Watch Topic
  • New Topic