Skip to content

ring-clojure/ring-session-timeout

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Ring-Session-Timeout

Build Status

Ring middleware that provides idle and absolute timeouts for sessions.

Installation

Add the following dependency to your project.clj:

[ring/ring-session-timeout "0.2.0"]

Usage

Place the timeout middleware inside that of your session middleware, and supply a :timeout-response or :timeout-handler to be used when the session times out.

(-> handler
    (wrap-idle-session-timeout {:timeout-response redirect-to-login})
    (wrap-session))

For more information, see the API docs linked below.

Documentation

License

Copyright © 2016 James Reeves

Distributed under the MIT License, the same as Ring.

About

Ring middleware for session timeouts

Resources

Stars

Watchers

Forks

Packages

No packages published