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