Thanks for your response. Switching the session type is effectively a
solution.
I'll give it a try.

 
Le 26/02/2016 19:28, Jonathan Vanasco a écrit :
> A way that would work, is to use a custom SessionFactory.  The
> SessionFactory in called with the `request` object on first
> invocation, so you can use that to decide on which type of session you
> want.  
> [https://github.com/Pylons/pyramid/blob/7d5d899f5043b381348bd349792fda6da957ab50/pyramid/request.py#L192-L203]
>
>
> You can inspect the request for the header/etc, and use a
> signed-cookie for bots (so your code still has a working session)
> while everyone else can just call the pyramid_beaker session's factory.
>
> That's the simplest approach I can think of as a pyramid user.  There
> are probably other ways that are apparent to the core developers.
> -- 
> You received this message because you are subscribed to the Google
> Groups "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to