Instead of specifying it in the configuration file I put in
my root
class something like:
_cp_config = { "tools.sessions.on": True,
"tools.sessions.timeout": 0.5 # minutes
}
It worked!
-- tsf
On Dec 14, 5:56 pm, "Timothy Kendall"
<kendall.timo... gmail.com>
wrote:
> I've searched around on this list a bit for
session-related difficulties and
> how to solve them, but I have yet to find anyone having
this fundamental a
> problem: I can't seem to get a .session in cherrypy at
all. There must be
> something really fundamental that I'm missing.
>
> I set the "tools.sessions.on = True" in the
config file, and I explicitly do
> the cherrypy.config.update() on the config file.
Checking
> cherrypy.config.items(), it does contain
("tools.session.on", True).
>
> But when I "import cherrypy" and take a look
at what it contains, there is
> no .session, and so of course any attempt to manipulate
it or any of its
> purported attributes, methods, etc., results in an
exception.
>
> I am using CherryPy 3.0.2.
>
> Could someone please point me to the place in the
documentation that I've
> obviously missed?
>
> Many thanks.
>
> TK
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|