[Zope] clear only one session var

Chris McDonough chrism@zope.com
Fri, 18 Apr 2003 21:54:43 -0400


REQUEST.SESSION.delete(key) should work (but so should del
REQUEST.SESSION['var'])


----- Original Message -----
From: "AM" <list_subscriber@neurobs.com>
To: "Zope" <zope@zope.org>
Sent: Friday, April 18, 2003 8:25 PM
Subject: [Zope] clear only one session var


> Hi,
>
> This might be avery silly ques.. but how do I clear only one
specific
> session variable??
>
> Tried the followwing which didnt work:
>
> 1. REQUEST.SESSION.clear('var')
> 2. _.del REQUEST.SESSION['var']
> 3. _.del REQUEST.SESSION.var
> 4. _.del( REQUEST.SESSION['var'] )
> 5. _.del( REQUEST.SESSION.var )
>
> Simply setting it to None wont work for me. I need to remove it from
the
> session dict.
>
> TIA
> AM
>
> --
> ==================================================================
>  Aseem Mohanty
>  Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706
>  (R) 510 7696011 (M) 510 3014871 (O) 510 5279231
> ==================================================================
>  "I saw `cout' being shifted "Hello world" times to the left and
>   stopped right there!!"                        -- Steve Gonedes
> ==================================================================
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>