session - Simple session middleware for koa

  •        22

Simple session middleware for Koa. Defaults to cookie-based sessions and supports external stores. The cookie name is controlled by the key option, which defaults to "koa:sess". All other options are passed to ctx.cookies.get() and ctx.cookies.set() allowing you to control security, domain, path, and signing among other settings.

https://github.com/koajs/session

Dependencies:

crc : ^3.4.4
debug : ^3.1.0
is-type-of : ^1.0.0
pedding : ^1.1.0
uid-safe : ^2.1.3

Tags
Implementation
License
Platform

   




Related Projects

generic-session - koa session store with memory, redis or others.

  •    Javascript

Notice: koa-session support external store now, please migrate to koa-session. Generic session middleware for koa, easy use with custom stores such as redis or mongo, supports defer session getter.

cookie-session - Simple cookie-based session middleware

  •    Javascript

Simple cookie-based session middleware. A user session can be stored in two main ways with cookies: on the server or on the client. This module stores the session data on the client within a cookie, while a module like express-session stores only a session identifier on the client within a cookie and stores the session data on the server, typically in a database.

session - Simple session middleware for Express

  •    Javascript

Create a session middleware with the given options. Note Session data is not saved in the cookie itself, just the session ID. Session data is stored server-side.

koa.io - Realtime web framework combine koa and socket.io.

  •    Javascript

Realtime web framework combine koa and socket.io. This project is under development now.

sessions - Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends

  •    Go

gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.First we initialize a session store calling NewCookieStore() and passing a secret key used to authenticate the session. Inside the handler, we call store.Get() to retrieve an existing session or create a new one. Then we set some session values in session.Values, which is a map[interface{}]interface{}. And finally we call session.Save() to save the session in the response.


sessions - Gin middleware for session management

  •    Go

Gin middleware for session management with multi-backend support (currently cookie, Redis, Memcached, MongoDB, memstore).

logger - Development style logging middleware

  •    Javascript

Development style logger middleware for koa. Notice: koa-logger@2 supports koa@2; if you want to use this module with koa@1, please use koa-logger@1.

akka-http-session - Web & mobile client-side akka-http sessions, with optional JWT support

  •    Java

akka-http is an Akka module, originating from spray.io, for building reactive REST services with an elegant DSL. akka-http is a great toolkit for building backends for single-page or mobile applications. In almost all apps there is a need to maintain user sessions, make sure session data is secure and cannot be tampered with.

koa-graphql - Create a GraphQL HTTP server with Koa.

  •    Javascript

Create a GraphQL HTTP server with Koa. NOTE: Below is a copy from express-graphql's README. In this time I implemented almost same api, but it may be changed as time goes on.

flask-sockets - Elegant WebSockets for your Flask apps.

  •    Python

Elegant WebSockets for your Flask apps. Combining WebSockets with Ajax (XHR) endpoints also comes handy with the support of session handling built-in to sockets as well. As an example you could use an Ajax login call which would create a new session and accordingly set a secure HttpOnly cookie to the browser. After authorization, you can connect to the WebSocket endpoint and reuse the session handling from Flask there as well (as shown here: https://pythonhosted.org/Flask-Session/). Access to other custom cookies is also possible via Flasks request.cookies property.

route - Simple route middleware

  •    Javascript

Uber simple route middleware for koa. If you need a full-featured solution check out koa-router, a Koa clone of express-resource.

Koa - Expressive HTTP middleware framework for node.js

  •    Javascript

Koa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. Through leveraging generators Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware within core, and provides an elegant suite of methods that make writing servers fast and enjoyable.

mount - Mount other Koa applications or middleware to a given pathname

  •    Javascript

Mount other Koa applications as middleware. The path passed to mount() is stripped from the URL temporarily until the stack unwinds. This is useful for creating entire apps or middleware that will function correctly regardless of which path segment(s) they should operate on. View the ./examples directory for working examples.

Auth MemCache Cookie

  •    Java

This is a apache v2.0 authentication module. Based on html form authentication and cookie authentication session. Cookie session are stored in memcache deamon. Can be used has an simple quot;Single Signe-Onquot; (SSO).

static - Static file server middleware

  •    Javascript

Koa static file serving middleware, wrapper for koa-send.