Hi Ben,

I see your dilemma, I think the best way to handle this is to provide
a redirect from the logout.php to the domain & path where your
original login happens (thus preserving cookie read access for the
token) and handle it just as you did with the $_GET to look out for
redirect from logout.php.

Austin

On Nov 20, 10:01 pm, Ben <[EMAIL PROTECTED]> wrote:
> Hackish solution, for anyone else with the same problem:
>
> in getCalendar.php, do
>
> if($_GET['logout']) google.accounts.user.logout()
>
> and in logout.php, put in a hidden iframe pointing to that url. Oddly,
> xmlHttpRequest didn't do it, though I might have just done something
> wrong there.
>
> On Nov 20, 6:13 pm, Ben <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm using the javascript client library. I want to make sure that if
> > one person logs out of my application, my application is no longer
> > accessing his google data. In particular, if two people are using my
> > application from the same computer, the second person shouldn't be
> > seeing the first person's data.
>
> > The user logs in from a particular page, say /sub/getCalendar.php. My
> > logout page is /logout.php. If I call the js code in /logout.php, it
> > can't find the token. In other words,
>
> > google.accounts.user.checkLogin(EVENT_FEED_URL) returns the empty
> > string, and
> > google.accounts.user.logout()  doesn't do anything.
>
> > What's the best way to deal with this? Thanks.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to