How to share sessions

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(how to share session?)
Line 1: Line 1:
how to share session? I want to get the session on another resin,so how can I get it?
+
How to share session? I want to get the session on another resin,so how can I get it?
 +
 
 +
In Resin 4.0, you can enable distributed sessions with the use-persistent-store tag in the session-config.
 +
 
 +
=== WEB-INF/resin-web.xml ===
 +
 
 +
<web-app xmlns="http://caucho.com/ns/resin">
 +
 +
    <session-config use-persistent-store="true"/>
 +
 +
  </web-app>

Revision as of 08:41, 14 January 2009

How to share session? I want to get the session on another resin,so how can I get it?

In Resin 4.0, you can enable distributed sessions with the use-persistent-store tag in the session-config.

WEB-INF/resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">

   <session-config use-persistent-store="true"/>

 </web-app>
Personal tools