Skip to content

Yourinspiration/jexpresso-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JExpresso Session Support Middleware

Middleware for JExpresso providing session support.

Maven

Latest stable release:

<dependency>
  <groupId>de.yourinspiration</groupId>
  <artifactId>jexpresso-session</artifactId>
  <version>1.0.1</version>
</dependency>

Usage

General

The session data will be stored as a request attribute. To retrieve the current session call the attribute() method of the request object, or use the static helper method of the JExpressoSession class.

Session session = (Session) req.attribute(JExpressoSession.SESSION_ATTR);
Session session = JExpressoSession.session(req);

The Session interface provides methods to get and set data from/to the session, and a method to invalidate the current session.

In Memory Store

final JExpresso app = new JExpresso();
app.use(new JExpressoSession(new InMemoryStore()));

About

A session middleware component for JExpresso applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages