Step 3. session sharing between iPortal and proxy service

Feedback


It's essential to configure session sharing before proxy works successfully. Specifically, you need to configure to store the Cookie information of logged in users.

The independent proxy supports using Memcached to store session to implement the sharing between iPortal and independent proxy.

  1. Install and start Memcached service

See: Memcached configuration.

  1. Copy the related dependencies

Copy the following dependencies in [SuperMap iPortal Proxy installation directory]\lib directory to [SuperMap iPortal installation directory]\lib.

  1. Open server.xml in %SuperMap iPortal_HOME%\conf directory, add the following code in<Host> node:

<Context path="/iportal">

<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"

memcachedNodes="n1:127.0.0.1:11211"

sticky="false"

sessionBackupAsync="false"

lockingMode="all"

requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"/>

</Context>

See: