LEGAL
-------------------------------------------------------------------
WebGUI is Copyright 2001-2009 Plain Black Corporation.
-------------------------------------------------------------------
Please
read
the legal notices (docs/legal.txt) and the license
(docs/license.txt) that came
with
this distribution
before
using
this software.
-------------------------------------------------------------------
-------------------------------------------------------------------
NAME
WebGUI::PSGI::Middleware::Session
VERSION
version 0.2
DESCRIPTION
Ensure a wgSession variable in the environment hash.
SYNOPSIS
builder {
enable
'+WebGUI::PSGI::Middleware::Session'
;
$app
;
}
ENVIRONMENT
In the incoming environment, if a wgSession variable is found, that is simply passed through. Otherwise, both the env hash and the %ENV hash are checked for WEBGUI_ROOT (default: /data/WebGUI) and WEBGUI_CONFIG (will die if none is found), and the cookies are used to determine a session id.