Trabaja con session, un script asi:
Código PHP:
session_start();
include("lib/EpiCurl.php");
include('lib/EpiOAuth.php');
include('lib/EpiTwitter.php');
include('keyTwitter.php');
if (isset($_GET['oauth_token'])) {
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
$twitterObj->setToken($_GET['oauth_token']);
$token = $twitterObj->getAccessToken();
$twitterObj->setToken($token->oauth_token, $token->oauth_token_secret);
$userdata = $twitterObj->get_accountVerify_credentials();
$_SESSION["username"] = $userdata->screen_name;
$_SESSION["image"] = $userdata->profile_image_url;}
Código PHP:
session_start();
session_unset();
session_destroy();
header('location: ../../');
Gracias y espero me ayuden....
Saludos