I'll try that. Today I use href="/logout" to logout. Thanks.
On Friday, 31 August 2012 04:39:57 UTC-3, Andrey Kuzmin wrote: > > 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/-/AyxvU3RzpL8J. 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.