You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by Apache Wiki <wi...@apache.org> on 2006/12/01 19:17:50 UTC
[Mod_python Wiki] Update of "Session use with classes" by MartinStoufer
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Mod_python Wiki" for change notification.
The following page has been changed by MartinStoufer:
http://wiki.apache.org/mod_python/Session_use_with_classes
The comment on the change is:
This example shows how to use the Session object with classes
New page:
= Using the Session object with classes =
== with focus on the Publisher model ==
----
This example will guide you through the steps required to get a session context working with python classes. As opposed to the simpler function based example in the [http://modpython.org/live/current/doc-html/pyapi-sess-example.html Mod_Python documentation]. We will also be using the Publisher model.
Once you understand this framework, you can then add your own content.
First, lets augment a directory element in the ''httpd.conf'' to enable session support.
<Directory /usr/local/apache2/htdocs/DomProdLib>
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonOption session MemorySession
</Directory>
----
CategoryExamples