durusmail: qp: How to unsecure qp pages?
How to unsecure qp pages?
2008-03-26
How to unsecure qp pages?
Maas-Maarten Zeeman
2008-03-27
Hello Tristan,

> I have been testing a few things out regarding securing pages (and
> unsecuring them).

I've had the same problem, and implemented it in a similar way as you
did. The only thing that if a user is authenticated you have to clear
authentication too before going to the unsecure page.

Like this:

     def sign_out(self, url):
         """(url:str)
         Un-authenticate the current user and redirect to an
insecure                        `url`.
         """
         get_session().clear_authentication()
         self.insecure(url)

Regards,

Maas-Maarten Zeeman
reply