WebStack

docs/SESSION.txt

289:43e23cde36c2
2004-09-21 paulb [project @ 2004-09-21 17:59:03 by paulb] Fixed path field discovery by removing parameters with empty names. This may not be totally correct, however.
     1 Session Support in WebStack
     2 ---------------------------
     3 
     4 Various frameworks do not support sessions. In order to provide primitive
     5 support for sessions within WebStack upon such frameworks, the
     6 WebStack.Helpers.Session module is used to provide a simple file-based session
     7 store. It is necessary to create a directory called WebStack-sessions in a
     8 particular location for the session store to function, and the location depends
     9 on the framework as summarised in the following table.
    10 
    11 Framework                   Location
    12 ---------                   --------
    13 BaseHTTPRequestHandler      The directory where the server is run.
    14 CGI                         The directory where the handler resides.
    15 mod_python                  The server root (eg. /usr/local/apache2).
    16 Twisted                     The directory where the server is run.
    17 
    18 Note that the WebStack-sessions directory must have the appropriate ownership
    19 and privileges necessary for the server/framework to write session files into
    20 it.
    21 
    22 Unsupported Frameworks and Framework Issues
    23 -------------------------------------------
    24 
    25 Webware 0.8.1 has problems creating sessions and is therefore not supported.
    26 Webware releases later than 0.8.1 (at least until the 2004-02-06 CVS snapshot
    27 used for testing) do not support session detection or expiry correctly.