web/enmi/clear.php
changeset 19 1c2f13fd785c
parent 0 4eba9c11703f
child 68 ecaf28ffe26e
equal deleted inserted replaced
18:bd595ad770fc 19:1c2f13fd785c
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * include some common code (like we did in the 90s)
       
     5  * People still do this? ;)
       
     6  */
       
     7 include_once './common.php';
       
     8 
       
     9 /**
       
    10  * Clear the Access Token to force the OAuth protocol to rerun
       
    11  */
       
    12 $_SESSION['TWITTER_ACCESS_TOKEN'] = null;
       
    13 
       
    14 /**
       
    15  * Redirect back to index and the protocol legs should run once again
       
    16  */
       
    17 header('Location: ' . URL_ROOT . '/index.php');