Skip to content
Session Middleware for Crust Framework
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Crust/Middleware Merge pull request #5 from adaptiveoptics/master Nov 19, 2016
t now we need to declare use HTTP::Request here Feb 20, 2017
.travis.yml migrate to Travis P6 default test Nov 4, 2016
LICENSE
META6.json Use SPDX identifier in license field of META6.json Apr 26, 2017
README.md Merge pull request #5 from adaptiveoptics/master Nov 19, 2016

README.md

Build Status

NAME

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

SYNOPSIS

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 = Crust::Middleware::Session::Store::Memory.new();
builder {
  enable 'Session', :store($store);
  &app;
};

DESCRIPTION

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 {
    %env<p6sgix.session>.get("username").say;
    ...
};

AUTHOR

Daisuke Maki lestrrat@gmail.com

COPYRIGHT AND LICENSE

Copyright 2015 Daisuke Maki

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

You can’t perform that action at this time.