views:

29

answers:

2

I'm having a problem figuring out to maintain the same session after I get the oauth callback in a servlet. Since th callback come from Twitter and not the clients browser, I get a different session.

Can someone help??

A: 

Without knowing about servlets, I offer three pieces of generic advice.

1 - start a new session when you get the OAuth callback.
2 - store a Session Id in a cookie and retrieve later
3 - the OAuth token begins with nnnnnn-XXXXX where nnn is the users twitter Id.

Hope this helps.

Dead account
A: 

You can also provide additional querystring parameters in the callback url and they will be provided when the user returns from authenticating.

Ricky Smith