开发者

Twitter @Anywhere sessions expire after 2 hours

开发者 https://www.devze.com 2023-03-15 20:34 出处:网络
After adding Twitter @Anywhere to a site,a user can log in just fine, but after 2 hours, their sessions have expired.Can\'t seem to find anything on the wire that references twitter anywhere session d

After adding Twitter @Anywhere to a site, a user can log in just fine, but after 2 hours, their sessions have expired. Can't seem to find anything on the wire that references twitter anywhere session dura开发者_如何学运维tions.


There's no way to override the cookie expiration via the API as this post to the Twitter Anywhere Development Google Group details.

In the thread, Matt Harris, one of Twitter's developer advocates summarizes:

@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.

0

精彩评论

暂无评论...
验证码 换一张
取 消