271
276
"""Log out the current user by destroying the session state.
272
277
Then redirect to the top-level IVLE page."""
273
281
if hasattr(self, 'session'):
274
282
self.session.invalidate()
276
284
# Invalidates all IVLE cookies
277
285
all_cookies = mod_python.Cookie.get_cookies(self)
288
self.add_cookie(mod_python.Cookie.Cookie(cookie,'',expires=1,path='/'))
284
289
self.throw_redirect(ivle.util.make_path(''))