RE: Session tracking across virtual hosts?

2001-12-09 Thread Neil Aggarwal

Craig:

Does the alias directive work in tomcat 3.2.3?

Here is what I put in my server.xml file:
Host name=dev.jammconsulting.com
  Aliasdev.leads-unlimited.com/Alias
  Context path=/sessionTest docBase=webapps2/sessionTest /
/Host

You can try it by visiting
http://dev.JAMMConsulting.com/sessionTest/index.jsp

But, when I try visiting
http://dev.leads-unlimited.com/sessionTest/index.jsp
I get an error.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Craig R. McClanahan
 Sent: Friday, December 07, 2001 10:38 PM
 To: Tomcat Users List
 Subject: RE: Session tracking across virtual hosts?




 On Fri, 7 Dec 2001, Neil Aggarwal wrote:

  Date: Fri, 7 Dec 2001 21:14:47 -0600
  From: Neil Aggarwal [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Session tracking across virtual hosts?
 
  Craig:
 
  It is the same webapp, not two different ones.  We just
  need to access it in two different ways, depending
  on if we are using http or https.
 
  There has to be a way to do this since it is the SAME
  application.
 

 Try the Alias element inside a Host element.  That declares the second
 host name to be an alias of the real one, and shares the same pool of
 webapps underneath.


  Thanks,
  Neil.
 

 Craig


  --
  Neil Aggarwal
  JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet DevelopmentWebsites, Ecommerce, Java, databases
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Craig R.
 McClanahan
   Sent: Friday, December 07, 2001 6:13 PM
   To: Tomcat Users List
   Subject: Re: Session tracking across virtual hosts?
  
  
  
  
   On Fri, 7 Dec 2001, Neil Aggarwal wrote:
  
Date: Fri, 7 Dec 2001 13:18:32 -0600
From: Neil Aggarwal [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Subject: Session tracking across virtual hosts?
   
Hello:
   
I am developing a web application that requires session tracking.
   
Because we are using a virtual host with a shared SSL certificate,
we need to track sessions using two different hosts.  For example,
we need to use URLs like:
   
http://www.virtdomain.com/appName/page.jsp
and
https://www.JAMMConsulting.com/appName/page.jsp
   
Session tracking does not work across this scenario since the
domains are different.
   
  
   By definition, sessions are scoped to a single web application, so you
   cannot even share them across two webapps on the same virtual host.
   You will need to use some other mechanism to share information between
   webapps -- perhaps using a database, or EJBs, or something like that.
  
   Craig
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Session tracking across virtual hosts?

2001-12-07 Thread Craig R. McClanahan



On Fri, 7 Dec 2001, Neil Aggarwal wrote:

 Date: Fri, 7 Dec 2001 13:18:32 -0600
 From: Neil Aggarwal [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat-User [EMAIL PROTECTED]
 Subject: Session tracking across virtual hosts?

 Hello:

 I am developing a web application that requires session tracking.

 Because we are using a virtual host with a shared SSL certificate,
 we need to track sessions using two different hosts.  For example,
 we need to use URLs like:

 http://www.virtdomain.com/appName/page.jsp
 and
 https://www.JAMMConsulting.com/appName/page.jsp

 Session tracking does not work across this scenario since the
 domains are different.


By definition, sessions are scoped to a single web application, so you
cannot even share them across two webapps on the same virtual host.
You will need to use some other mechanism to share information between
webapps -- perhaps using a database, or EJBs, or something like that.

Craig



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session tracking across virtual hosts?

2001-12-07 Thread Neil Aggarwal

Craig:

It is the same webapp, not two different ones.  We just
need to access it in two different ways, depending
on if we are using http or https.

There has to be a way to do this since it is the SAME
application.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Craig R. McClanahan
 Sent: Friday, December 07, 2001 6:13 PM
 To: Tomcat Users List
 Subject: Re: Session tracking across virtual hosts?
 
 
 
 
 On Fri, 7 Dec 2001, Neil Aggarwal wrote:
 
  Date: Fri, 7 Dec 2001 13:18:32 -0600
  From: Neil Aggarwal [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat-User [EMAIL PROTECTED]
  Subject: Session tracking across virtual hosts?
 
  Hello:
 
  I am developing a web application that requires session tracking.
 
  Because we are using a virtual host with a shared SSL certificate,
  we need to track sessions using two different hosts.  For example,
  we need to use URLs like:
 
  http://www.virtdomain.com/appName/page.jsp
  and
  https://www.JAMMConsulting.com/appName/page.jsp
 
  Session tracking does not work across this scenario since the
  domains are different.
 
 
 By definition, sessions are scoped to a single web application, so you
 cannot even share them across two webapps on the same virtual host.
 You will need to use some other mechanism to share information between
 webapps -- perhaps using a database, or EJBs, or something like that.
 
 Craig
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]