How to share sessions

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(how to share session?)
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
how to share session? I want to get the session on another resin,so how can I get it?
+
{{Cleanup}}
 +
[[Category: HowTo]]
 +
 
 +
How do I share sessions? 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.  Resin will automatically keep the servers current with the latest session values.  The resin-web.xml configuration looks like the following:
 +
 
 +
=== WEB-INF/resin-web.xml ===
 +
 
 +
<web-app xmlns="http://caucho.com/ns/resin">
 +
 +
    <session-config use-persistent-store="true"/>
 +
 +
  </web-app>

Latest revision as of 16:24, 7 December 2011

40px-Edit-clear.png This article requires cleanup and may refer to a legacy version of Resin.

Please visit http://www.caucho.com/documentation/ for the most up-to-date documentation.

How do I share sessions? 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. Resin will automatically keep the servers current with the latest session values. The resin-web.xml configuration looks like the following:

WEB-INF/resin-web.xml

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

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

 </web-app>
Personal tools