Giter Club home page Giter Club logo

tomcat-extensions-redis-session-manager's Introduction

Tomcat-Redis Session Manager

Acknowledgement

This extension originated from https://github.com/jcoleman/tomcat-redis-session-manager.

The original one does NOT support Tomcat 8, so I fixed it a bit to support Tomcat 8.

Usage

This extension needs Java 7 or higher, and it works well with Tomcat 8 as well as Tomcat 7.

Pre-requisites

Redis server should be run before the Tomcat Web Application starts.

Dependencies

Put the following files into the CATALINA_HOME/lib directory:

Configuration

Add the following inside the <Context> element of your CATALINA_HOME/conf/context.xml(NOT server.xml).

<Valve className="homo.efficio.tomcat.extensions.session.redis.RedisSessionValve" />
<Manager className="homo.efficio.tomcat.extensions.session.redis.RedisSessionManager"
         host="localhost" <!-- optional: defaults to "localhost" -->
         port="6379" <!-- optional: defaults to "6379" -->
         database="0" <!-- optional: defaults to "0" -->
         maxInactiveInterval="60" <!-- optional: defaults to "60" (in seconds) -->
         sessionPersistPolicies="PERSIST_POLICY_1,PERSIST_POLICY_2,.." <!-- optional -->
         sentinelMaster="SentinelMasterName" <!-- optional -->
         sentinels="sentinel-host-1:port,sentinel-host-2:port,.." <!-- optional --> />

For further information, please refer to https://github.com/jcoleman/tomcat-redis-session-manager/blob/master/README.markdown.

tomcat-extensions-redis-session-manager's People

Contributors

homoefficio avatar hanmomhanda avatar

Stargazers

Christian Oestreich avatar  avatar Whosoon Sean Hwang avatar JEON ILWOONG avatar  avatar  avatar Codinng Lee avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.