web/rsln/clear.php
changeset 20 7e0a67a20e74
child 68 ecaf28ffe26e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/rsln/clear.php	Fri Jan 21 13:42:03 2011 +0100
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+include_once './common.php';
+
+/**
+ * Clear the Access Token to force the OAuth protocol to rerun
+ */
+$_SESSION['TWITTER_ACCESS_TOKEN'] = null;
+
+/**
+ * Redirect back to index and the protocol legs should run once again
+ */
+header('Location: ' . URL_ROOT . '/index.php');