eclipse - How to share a session in j2ee application? -


possible duplicate:
any way share session state between different applications in tomcat?

how can share session attribute in 2 web project in same work space ?

i read session on server why when go 2nd project in same work space dont find session attribute .

i mean cant use in énd project

<%                         if(session.getattribute("username") != null ){                          %>          work           <% } %> 

i'm usign tomcat v7 server , eclipse

hmmm! if using tomcat can set crosscontext=true in server.xml i.e.

<context allowlinking="true" docbase="/home/appa" path="/appa" reloadable="true"  crosscontext="true"/> <context allowlinking="true" docbase="/home/appb" path="/appb" reloadable="true" crosscontext="true"/> 

and can share sessions, if can tell me situation might more helpful


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -