You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by zhang99 <se...@yahoo.com> on 2009/08/03 05:53:18 UTC

share session between 2 different webapp

can
http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On 
be used if 2 web application are different? Let say 2 web app are deployed
on same tomcat server. i looking for way, if i login to web app1, when i go
to web app2, i do not need to login
-- 
View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24784997.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: share session between 2 different webapp

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: zhang99 [mailto:second_comet@yahoo.com]
> Subject: Re: share session between 2 different webapp
> 
> 1.I came across documentation on this,but cannot find real 
> example on how to use ? any tutorial on this?

You seem to think this is more difficult than it really is.  Just follow the doc: uncomment the SingleSignOn valve in server.xml and you're done - it's that simple.  No changes are required to webapp code.

> 2. is there any sample war that i can try out on this?

Any set of webapps that have security constraints can be used.  The standard manager and host-manager webapps that come with Tomcat both have security constraints specified in their web.xml files; you can add whatever constraints you want to whatever webapps you want.  Read the servlet spec for details about security constraints.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by zhang99 <se...@yahoo.com>.
1.I came across documentation on this,but cannot find real example on how to
use ? any tutorial on this?
2. is there any sample war that i can try out on this?
-- 
View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24801578.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
zhang99 wrote:
> i looked at
> http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On
> before posting here. any real sample?
>   
So go ahead and try it.


-- 
Mikolaj Rydzewski <mi...@ceti.pl>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by zhang99 <se...@yahoo.com>.
i looked at
http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On
before posting here. any real sample?
-- 
View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24790963.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by Mark Thomas <ma...@apache.org>.
zhang99 wrote:
> sorry, what i mean is i looking for example that i can follow. any example
> available?

Have you looked at the documentation?

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by zhang99 <se...@yahoo.com>.
sorry, what i mean is i looking for example that i can follow. any example
available?
-- 
View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24789601.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
zhang99 wrote:
> is there any example webapp that using this feature ?
>   
It works with any webapp.

-- 
Mikolaj Rydzewski <mi...@ceti.pl>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by zhang99 <se...@yahoo.com>.
is there any example webapp that using this feature ?
-- 
View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24787864.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: share session between 2 different webapp

Posted by Pid <pi...@pidster.com>.
On 03/08/2009 04:53, zhang99 wrote:
>
> can
> http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On
> be used if 2 web application are different? Let say 2 web app are deployed
> on same tomcat server. i looking for way, if i login to web app1, when i go
> to web app2, i do not need to login

Yes, this is the purpose of the SingleSignOn Valve.

p

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org