User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 397,771 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,511 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 3572 | Replies: 1
Reply
Join Date: Apr 2005
Posts: 3
Reputation: Zcoral is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Zcoral Zcoral is offline Offline
Newbie Poster

jsp will lost its session while subdomain-rewrite applied

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,661
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 192
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

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

  #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.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 4:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC