Okay I cracked this problem. For anyone who wants to use Beaker with
the type being anything other than memory, you need to initialize the
SessionMiddleware in the following manner:
s=SessionMiddleware(app,**{'session_type':'file','session_data_dir':'./
sessions'})
For some reason Beaker is set up so that you have to prefix your
config variables with 'session_'. The configuration is ignored if it
is not prefixed in this way.
PS This is what works for me, but since it's contrary to the examples
I've seen online, let me know if I'm doing something wrong.
MP
On Feb 18, 10:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Feb 18, 5:57 am, slav0nic <[EMAIL PROTECTED]> wrote:> data_dir is exist
> and have +w access?
>
> Yes and yes.
>
> Thanks for posting.
>
> Anyone out there who got Beaker file-based sessions working?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---