Permalink
Browse files

logout deletes cookies and redirects to index

  • Loading branch information...
1 parent b6ce459 commit 2f818b1cc75118ba17c002ce8e240459eed8170f @thomaspark thomaspark committed Nov 17, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 app.php
View
@@ -130,6 +130,9 @@
}
} else if ($action == 'logout') {
+ setcookie ('home', '', time() - 3600, '/');
+ setcookie ('key', '', time() - 3600, '/');
+ header('Location: ./');
} else if ($action == 'save' || $action == 'clone') {
list($code_id, $revision) = getCodeIdParams($request);

0 comments on commit 2f818b1

Please sign in to comment.