Various server environments or frameworks do not support sessions
directly. In order to provide primitive support for sessions within
WebStack upon such frameworks, the WebStack.Helpers.Session
module is used to provide a simple file-based session store. Before
deploying an application on one of these frameworks, it may be necessary to
create a directory called WebStack-sessions
in a
particular location so that the storage of session information will
work, although WebStack will attempt to create such a directory if it does not already exist.
The location of the WebStack-sessions
directory
depends on the framework as summarised below:
Server Environment | Directory Location |
---|---|
BaseHTTPRequestHandler | The directory where the server is run. |
CGI | The directory where the handler resides. |
mod_python | The server root (such
as /usr/local/apache2 ). |
Twisted | The directory where the server is run. |
Note that the WebStack-sessions
directory must
have the appropriate ownership and privileges necessary for the server
or framework to write session information into it.