Removing session variable

65 views
Skip to first unread message

Theron Luhn

unread,
Apr 23, 2012, 6:21:00 PM4/23/12
to pylons-...@googlegroups.com
I'm using Beaker sessions in Pyramid.  How does one go about removing a variable from the session?  Pretty much the functioning equivalent of this:

request.session.remove('reservation')
 

Chris McDonough

unread,
Apr 23, 2012, 6:31:34 PM4/23/12
to pylons-...@googlegroups.com
On 04/23/2012 06:21 PM, Theron Luhn wrote:
> I'm using Beaker sessions in Pyramid. How does one go about removing a
> variable from the session? Pretty much the functioning equivalent of this:
>
> request.session.remove('reservation')\

del request.session['reservation']

- C


>
> --
> You received this message because you are subscribed to the Google
> Groups "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/sCWLVcJVlJ8J.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.

Theron Luhn

unread,
Apr 23, 2012, 6:37:32 PM4/23/12
to pylons-...@googlegroups.com
Well that was easy...

Thanks ^_^

- Theron


On Mon, Apr 23, 2012 at 3:31 PM, Chris McDonough <chr...@plope.com> wrote:
On 04/23/2012 06:21 PM, Theron Luhn wrote:
I'm using Beaker sessions in Pyramid. How does one go about removing a
variable from the session? Pretty much the functioning equivalent of this:

   request.session.remove('reservation')\

del request.session['reservation']

- C

--
You received this message because you are subscribed to the Google
Groups "pylons-discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pylons-discuss/-/sCWLVcJVlJ8J.
To post to this group, send email to pylons-discuss@googlegroups.com.

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to pylons-discuss+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages