On May 1, 2014, at 12:39 , wilk <[email protected]> wrote:

> On 30-04-2014, Bert JW Regeer wrote:
> 
> About _session_id of pyramid_pluggable_session
> 
>> That is why it has an underscore prepended, this makes it an internal 
>> =
>> value that can not be relied on, unless you always use my session =
>> package. The nice thing is that with mine you can keep using it, as long =
>> as you swap out the plugs, and they won=92t ever alter the fact that =
>> there is a _session_id.
> 
> Sorry it's not clear for me, when i write a new plug can i rely on 
> _session_id ?
> 
> -- 
> William
> 

Yes. You can rely on _session_id existing. From an outside perspective, anyone 
using request.session SHOULD NOT rely on _session_id existing, since it may not 
be pyramid_pluggable_session, and thus _session_id may not be available.

Bert


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to