• 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

Very Urgent please (Tomcat loosing sessions)

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
First of all I would like to know how Tomcat tracks sessions using cookie. I want to know whether it uses www.xxx.com or just xxx.com to track sessions while setting the cookies.
My Problem:
I have tow virtual Apache host, one SSL and one Non-SSL talking to same tomcat instance. When I jump from non-SSl to SSL then tomcat looses all its previous session. I changed Apache to use the same host name for SSL and NON-SSL and now it works but not with virtual host.
Please help me how to maintain sessions if I jump between Virtual host. It seems Tomcat tracks session using cookies with full host name rather than just domain name.
How to make Tomcat to set session cookies just by using xxx.com rather than www.xxx.com.
Note: Only one tomcat instance but 2 apache virtual host.
Regards,
Raghu
reply
    Bookmark Topic Watch Topic
  • New Topic