thanks abraham, i´m not sure how to call this function in javascript. when i tried it using a ajax request i had trouble with cross domain restrictions. is it possible to do define a callback like
<script type="text/javascript"> function myCallback(isSessionPresent){ //processing } </script> <script src="http://twitter.com/sessions/present.json? callback=myCallback"></script> i´m not shure which parameter to use in the script (i used callback in the example code) or how to define a callbackhandler in an other way thanks for your info greez jirgn On Aug 12, 10:44 am, Abraham Williams <4bra...@gmail.com> wrote: > You can't do it from your PHP backend because your server does not have the > open session with Twitter as the user. I think you are going to have to make > it using JavaScript and a callback method. > > Abraham > > 2009/8/12 jirgn <jirg...@googlemail.com> > > > > > > > i wanted to use the undocumented api-call > >http://twitter.com/sessions/present.json, > > but can´t figure out how to do it the right way. > > When calling this function via browser everything is allright and i > > get the correct result. > > Doing the same thing via my php backend, i always get 'false' - the > > cause for this might be that this function is clientspecific and uses > > a cookie in the request. > > My third try was a ajax request - which fails cause of cross domain > > restrictions. > > > has anybody successfully used this function? > > > hope to hear from you > > jirgn > > -- > Abraham Williams | Community Evangelist |http://web608.org > Hacker |http://abrah.am|http://twitter.com/abraham > Project |http://fireeagle.labs.poseurtech.com > This email is: [ ] blogable [x] ask first [ ] private. > Sent from Fairbanks, Alaska, United States