title: Invalid/Expired Token error with Twitter API
body: <p>I am using Jason Mathai's PHP OAUTH library and i keep on getting an invalid/expired token error whenever i try to access a user's information with the following test code:</p>
  
  <pre><code>//sessions stuff here
   session_start(); 
  //twitter stuff
  include 'lib/EpiCurl.php';
  include 'lib/EpiOAuth.php';
  include 'lib/EpiTwitter.php';
  include 'lib/secret.php';
  
  
      //ensure token is set for the session
      $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); 
      if($_GET['oauth_token']){
      $_SESSION['o_token'] = $_GET['oauth_token'];
      }
      if(!isset($_SESSION['o_token']))
            { 
      $url = $twitterObj-&gt;getAuthorizationUrl();
           header("Location:$url");
              die();
                  } 
      $o_token = $_SESSION['o_token'];
  
      $twitterObj-&gt;setToken($o_token);  
      $token = $twitterObj-&gt;getAccessToken();  
      $twitterObj-&gt;setToken($token-&gt;oauth_token, $token-&gt;oauth_token_secret);  
      setcookie('oauth_token', $token-&gt;oauth_token);  
      setcookie('oauth_token_secret', $token-&gt;oauth_token_secret);    
      $twitterObj = new EpiTwitter($consumer_key, $consumer_secret,$_COOKIE['oauth_token'], $_COOKIE['oauth_token_secret']);  
      $twitterInfo= $twitterObj-&gt;get_accountVerify_credentials();
      $twitterInfo-&gt;response;
      var_dump($twitterInfo-&gt;response); // this tells me the error 
  
                  try{  
  
                     echo $twitterInfo-&gt;screen_name;  
  
                      }catch(EpiTwitterException $e){  
                         echo $e-&gt;getMessage();  
                        }   
  </code></pre>
  
  <p>All the methods map directly to HTTP get calls with the twitter API I assume my problem has nothing to do with Jason's library (since it is fairly well used) but something to do with my logic. All help is appreciated!</p>