web/CPV/clear.php
author Samuel Huron <samuel.huron@centrepompidou.fr>
Thu, 07 Jul 2011 16:27:54 +0200
changeset 217 bf9b1fa4259c
parent 150 ffaea21247c4
permissions -rwxr-xr-x
chi07

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