web/clear.php
author Samuel Huron <samuel.huron@centrepompidou.fr>
Wed, 06 Apr 2011 17:34:27 +0200
changeset 102 ca1822004e89
parent 99 6cb4d10f0b8b
child 207 621fa6caec0c
permissions -rw-r--r--
dates

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