Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.3.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 © 2023 James Reeves

Distributed under the MIT License, the same as Ring.

About

Ring middleware for session timeouts

Resources

Stars

35 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages