[Twisted-web] Re: /__logout__ doesn't expire the session

Andrea Arcangeli andrea at cpushare.com
Sat Jan 15 17:55:38 MST 2005

btw, there is another (minor) problem in the userdb example, that is
using formless to do the ILogout, will cause the logout to jump into the
home with carryover set. The carryover screwup the cache, so if you
happen to type "/" again (like following an home link), you'll find
yourself pointing to the "member" page, not to the guest page. Because
the last time you've really watched the "/" URL (without carryover) you
were on the member part of the site.

So I'm not using the redirectafter post anymore to avoid carryover, and
everything is working fine now (I must only not share the same paths I
use in the memeber context with the guest part, except for the "/" root
itself which is handled by nevow itself in the login/logout procedure
that disables the cache automatically [via post I guess]).

there's an illegal chr in userdb.tac that prevents running it in
svn, here the compile fix.

Index: examples/userdb/userdb.tac
--- examples/userdb/userdb.tac	(revision 1084)
+++ examples/userdb/userdb.tac	(working copy)
@@ -482,4 +482,4 @@
 application = service.Application("UserManager1")
-strports.service("8080", site).​setServiceParent(application)
+strports.service("8080", site).setServiceParent(application)

More information about the Twisted-web mailing list