Session Middleware for Crust Framework
Perl 6
Switch branches/tags
Nothing to show
Latest commit dda6879 Feb 20, 2018
lestrrat Merge pull request #7 from samcv/SPDX-license
Use SPDX identifier in license field of META6.json

Build Status


Crust::Middleware::Session - Session Middleware for Crust Framework


use Crust::Builder;
use Crust::Middleware::Session;

# $store can be anything that implements Crust::Middleware:Session::StoreRole.
# This here is a dummy that stores everything in memory
my $store =;
builder {
  enable 'Session', :store($store);


Crust::Middleware::Session manages sessions for your Crust app. This module uses cookies to keep session state and does not support URI based session state.

A session object will be available under the kye p6sgix.session in the P6SGI environment hash. You can use this to access session data

my &app = ->%env {


Daisuke Maki


Copyright 2015 Daisuke Maki

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.