[twitter-dev] Check if user is already logged in?

2010-11-19 Thread Patrick Golden
Is it possible to check to see if a user is logged in to Twitter and has authorized the application without having any redirects? For first time login, I have this basic code: ? require(twitter/twitteroauth.php); session_start(); // The TwitterOAuth instance $twitteroauth = new

Re: [twitter-dev] Check if user is already logged in?

2010-11-19 Thread Abraham Williams
With TwitterOAuth you have to maintain your own sessions. When you get a users access token save that into $_SESSION or save something like $_SESSION['twitter_users_auth'] = TRUE. Check if that is set and if it is not you know the user is not currently logged into your site with Twitter. Abraham