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