Logo Search packages:      
Sourcecode: zope-cookiecrumbler version File versions  Download package

def zope-cookiecrumbler-1.2::CookieCrumbler::CookieCrumbler::logout (   self  ) 

Logs out the user and redirects to the logout page.

Definition at line 333 of file CookieCrumbler.py.

00333                     :
        '''
        Logs out the user and redirects to the logout page.
        '''
        req = self.REQUEST
        resp = req['RESPONSE']
        method = self.getCookieMethod( 'expireAuthCookie'
                                     , self.defaultExpireAuthCookie )
        method( resp, cookie_name=self.auth_cookie )
        if self.logout_page:
            page = self.restrictedTraverse(self.logout_page, None)
            if page is not None:
                resp.redirect('%s?disable_cookie_login__=1'
                              % page.absolute_url())
                return ''
        # We should not normally get here.
        return 'Logged out.'

    # Installation and removal of traversal hooks.

    def manage_beforeDelete(self, item, container):


Generated by  Doxygen 1.6.0   Back to index