I am having a few problems sharing sessions between a secure and a
non-secure web site
Having read various posts to the forum I thought that adding shared="true"
to the default-web-app element in each web-site.xml would do the trick. Not
for me. Each web site is creating its own session when it is hit for the
first time (within the same browser window)
So...
I have 2 web apps.
They both use the same application (as specified in server.xml).
Each web app has its own web-site.xml
One of the web apps is secured ie SSL.
web-site.xml for the non-secure site is as follows
--------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE web-site PUBLIC "Orion Web-site"
"http://www.orionserver.com/dtds/web-site.dtd">
<web-site host="[ALL]" port="80" display-name="SecTest site">
<default-web-app application="sectest" name="sectest-web" shared="true"
load-on-startup="true"/>
<access-log path="log/default-web-access.log" />
</web-site>
web-site.xml for the secure site is as follows
----------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE web-site PUBLIC "Orion Web-site"
"http://www.orionserver.com/dtds/web-site.dtd">
<web-site host="[ALL]" secure="true" display-name="SecTest secure site">
<default-web-app application="sectest" name="sectestsecure-web"
shared="true" load-on-startup="true"/>
<ssl-config keystore="keystore" keystore-password="123456" />
<access-log path="log/default-web-access.log" />
</web-site>
Can anyone see what I'm doing wrong? I assume what I'm trying to do is
possible.
Thanks
Matt