Permalink
Browse files

added clearsessions.php

  • Loading branch information...
1 parent 9cf5202 commit a22b647286239a836ce436418be69c1bb58e3a58 @abraham abraham committed Nov 3, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 clearsessions.php
View
@@ -0,0 +1,12 @@
+<?php
+/**
+ * @file
+ * Clears PHP sessions and redirects to the connect page.
+ */
+
+/* Load and clear sessions */
+session_start();
+session_destroy();
+
+/* Redirect to page with the connect to Twitter option. */
+header('Location: ./connect.php');

0 comments on commit a22b647

Please sign in to comment.