Question about the twitter_anywhere_identity cookie

105 views
Skip to first unread message

Andy Page

unread,
Jun 29, 2011, 4:12:18 AM6/29/11
to twitter-de...@googlegroups.com
When I check my cookies after using anywhere to "login" to a site. I see this cookie for example.

The part I'm interested in is the "Expires: When I quit my browser". How can I change the expiration so that it does not expire when the browser quits?


Name:twitter_anywhere_identity
Content:133017433:19b674737267ca9a0f32b0d3ade4809d8ba9a477
Domain:www.spoilertv.com
Path:/
Send For:Any kind of connection
Accessible to Script:Yes
Created:Tuesday, June 28, 2011 12:23:19 PM
Expires:When I quit my browser

Matt Harris

unread,
Jun 29, 2011, 12:03:45 PM6/29/11
to twitter-de...@googlegroups.com
Hi Andy,

@anywhere is session based which is what the expiry is reflecting. We don't provide a way to change this.

Best,
@themattharris
Developer Advocate, Twitter




--
Twitter @Anywhere documentation and resources: http://dev.twitter.com/anywhere/begin
@anywhere updates via Twitter: http://twitter.com/anywhere
Change your membership to this group: http://groups.google.com/group/twitter-dev-anywhere?hl=en

Andy Page

unread,
Jun 29, 2011, 12:08:39 PM6/29/11
to twitter-de...@googlegroups.com
Thanks Matt, appreciate the reply.

I just assumed that like visiting twitter.com I would not have to re-authenticate each time. I guess twitter.com does some other non-@anywhere login etc.

The reason I'm asking is that we use @anywhere to authenticate/login our users onto the Badgeville system that we've just implemented and we're looking for a way for users to "stay logged in" :)

Matt Harris

unread,
Jun 29, 2011, 1:20:17 PM6/29/11
to twitter-de...@googlegroups.com
@anywhere doesn't share the twitter.com login but instead is a user authorised connection - much like OAuth apps. 
But, unlike OAuth apps, @anywhere is purely web-based so doesn't provide access beyond the current session.

If you want to provide a logged in system you would need to use your own session management code. To use Twitter as the identity provider you might want to consider "Sign in with Twitter" instead though.

Best,
Developer Advocate, Twitter



--

Andy Page

unread,
Jun 29, 2011, 5:33:50 PM6/29/11
to twitter-de...@googlegroups.com
Awesome, thanks Matt, that's very helpful.

Appreciate your time.
Reply all
Reply to author
Forward
0 new messages