944,065 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 4961
  • JSP RSS
Apr 8th, 2005
0

jsp will lost its session while subdomain-rewrite applied

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Zcoral is offline Offline
3 posts
since Apr 2005
Apr 11th, 2005
0

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

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Forms
Next Thread in JSP Forum Timeline: starting jsp....





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC