List Info

Thread: Problem with session id




Problem with session id
user name
2006-08-11 21:26:38
T. S. Ferreira wrote:
> I have an application using CherryPy which worked
nicely under my
> Fedora Core 3 installation. I replaced my system by
Fedora Core 5, and
> now I get an error page from my server with the
following traceback:
> 
> 
> ===============
>   ...
>   File "/home/tsf/myappl/submission.py",
line 127, in 
> processSubmission
>     myObject.id =
cherrypy.session.get("_id",None)
>   File 
>
"/usr/lib/python2.4/site-packages/cherrypy/lib/filter/
sessionf
ilter.py",
> line 442, in __getattr__
>     raise SessionNotEnabledError()
> SessionNotEnabledError
> ===============
> 
> It seems that I cannot get the session id, even though
it worked
> already. Is there anything that must be configured in
the operating
> system itself?
> 
> BTW, my server configuration does include the line:
> 
>   "session_filter.on": True
> 
> Otherwise it would not have worked before either.


Can you try cherrypy\test\test_session_filter.py and see
if it works? I
also wonder if you have
"session_filter.storage_class" defined.


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

Problem with session id
user name
2006-08-14 13:58:21
I think I found the source of my problem, but there must
have been a
change in the package. I was using the class name
"session_filter". I
changed my settings dictionary to:

    { ...,
      "sessionFilter.on": True,
      "sessionFilter.timeout": 1,
      ...
    }

and it works again!

Thanks,

-- tsf


On 8/11/06, Robert Brewer <fumanchuamor.org> wrote:
>
> T. S. Ferreira wrote:
> > I have an application using CherryPy which worked
nicely under my
> > Fedora Core 3 installation. I replaced my system
by Fedora Core 5, and
> > now I get an error page from my server with the
following traceback:
> >
> >
> > ===============
> >   ...
> >   File
"/home/tsf/myappl/submission.py", line 127, in
> > processSubmission
> >     myObject.id =
cherrypy.session.get("_id",None)
> >   File
> >
"/usr/lib/python2.4/site-packages/cherrypy/lib/filter/
sessionf
> ilter.py",
> > line 442, in __getattr__
> >     raise SessionNotEnabledError()
> > SessionNotEnabledError
> > ===============
> >
> > It seems that I cannot get the session id, even
though it worked
> > already. Is there anything that must be configured
in the operating
> > system itself?
> >
> > BTW, my server configuration does include the
line:
> >
> >   "session_filter.on": True
> >
> > Otherwise it would not have worked before either.
>
>
> Can you try cherrypy\test\test_session_filter.py and
see if it works? I
> also wonder if you have
"session_filter.storage_class" defined.
>
>
> Robert Brewer
> System Architect
> Amor Ministries
> fumanchuamor.org
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )