Have you tried something like this:

<form method="post" action="/logout"><button 
type="submit">logout</button></form>

class logout:
    def POST(self):
        session.kill()
        raise web.seeother("/")

On Friday, August 31, 2012 1:33:19 AM UTC+4, Tomas Schertel wrote:
>
> Maybe it is a dummy question, but how can I create a logout from my 
> application using POST verb?
> Using GET, I have a session.kill().
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/webpy/-/2W1gizB-K3AJ.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to