web/clear.php
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Fri, 01 Jul 2011 18:59:13 +0200
changeset 207 621fa6caec0c
parent 99 6cb4d10f0b8b
parent 0 4eba9c11703f
child 229 74c9ddc3640b
permissions -rwxr-xr-x
Merge with f093196961e770387cc7cd3e11f2b7c0881b003b

<?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);