Leonardo wrote:
> I need to kill the session if it already exist, using the
> "cherrypy.session" . How to make ?
> Imaginary example:
>
>    if user == '1234':
>        cherrypy.session.kill('1234')

This is a little unclear -- do you want to clear/reset the entire
session, or remove the '1234' record from the session?

To do the former: cherrypy.session.clear()
To do the latter: del cherrypy.session['1234']

Reply via email to