jsp will lost its session while subdomain-rewrite applied

Reply

Join Date: Apr 2005
Posts: 3
Reputation: Zcoral is an unknown quantity at this point 
Solved Threads: 0
Zcoral Zcoral is offline Offline
Newbie Poster

jsp will lost its session while subdomain-rewrite applied

 
0
  #1
Apr 8th, 2005
my system is tomcat combinded apache.

I want to do SEO by apache mod rewrite so as to hard pages likewise, and devided my company's applications into several modules/subdomain( hosting in one jsp server), so as to promote each individually, such as bussines, forum, blog, news, etc.

after everything has been closely to be done, I found one unexpect result that the jsp session not only related to the application/context directory but also the hostname, so that while the audience login with one subdomain, but change to another domain(or subdomain), his session will be lost. Unless I use redirect,however, it probably will disable the SEO(sounds like to browse by hardpage link) efforts.

can I get the tomcat/jsp to regconize the sessions only by context/dir?

thanks
frederick Z
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: jsp will lost its session while subdomain-rewrite applied

 
0
  #2
Apr 11th, 2005
The session (and that's universal) exists for a web application context. That means a specific webapp installed on a specific domain.
Crossing domains and applications isn't possible as it would cause major security problems.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC