Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-07 Thread Archia
Why are you sending users to clearsessions.php if you don't wan't the session data cleared? clearsessions.php is essentially a reset to simulate logging out of an application. The library sends users to clearsessions.php out of the box, I was asking if not clearing the session data would caus

Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-06 Thread Abraham Williams
Why are you sending users to clearsessions.php if you don't wan't the session data cleared? clearsessions.php is essentially a reset to simulate logging out of an application. Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham | github.com/ab

Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-03 Thread Archia
The reason my insert code was not inserting the client tokens in my database after returning from Twitter and allowing access to my application was that clearsessions.php was, of all things, clearing the session variables! I use a session variable to identify my client when they log into my site

Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread Abraham Williams
I will just revoke access until authorization happens again. You don't have to revoke access though. You can just clear the sessions and go through the flow. It will be the same you just won't have to click allow each time. Abraham - Abraham Williams | Hacker Advocate | abrah.am @abrah

Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread Archia
On Wednesday, February 2, 2011 1:29:08 PM UTC-5, Abraham Williams wrote: > > callback.php provides a good spot for saving access_tokens to a persistant > storage. > > https://github.com/abraham/twitteroauth/blob/master/callback.php#L34 > > Abraham > - > Abraham Williams | Hacker Advoc

Re: [twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread Abraham Williams
callback.php provides a good spot for saving access_tokens to a persistant storage. https://github.com/abraham/twitteroauth/blob/master/callback.php#L34 Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham | github.com/abraham | blog.abrah.am

[twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread Archia
Yes, this will be good. Are the user's oAuth token and oAuth token secret retrieved from these lines in index.php?: /* Get user access tokens out of the session. */ $access_token = $_SESSION['access_token']; $access_token['oauth_token']; $access_token['oauth_token_secret']; Thanks for your reply

[twitter-dev] Re: abraham / twitteroauth

2011-02-02 Thread jaronbarends
The direction you'll want to be heading is letting the users allow your app access once. You can then store the user's oAuth token and oAuth token secret with their account. (instead of their username and password) These won't change unless the user revokes your website's access. jarón On Feb 1,