Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9161969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:06:04+00:00 2026-06-17T14:06:04+00:00

I am using google open id on my website as a login system. I

  • 0

I am using google open id on my website as a login system.
I ran into some trouble with logging a user out. Destroying the session on the site obviously doesn’t log them out of the google account, and on the next login the user automatically logs in with whatever google account the browser is logged into.

Looking at a few questions on here, I discovered I could just make a request to
https://www.google.com/accounts/Logout

I tried using

<script type="text/javascript">
    $.ajax({ url: "https://www.google.com/accounts/Logout" });
</script>

but it did not work and I’m not sure why. However this works just fine

<img src="https://www.google.com/accounts/Logout" />

Can anyone explain to me why the ajax request doesn’t work?

Edit:

More importantly, what is the best way to send the request? An img tag doesn’t seem like a nice solution.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:06:05+00:00Added an answer on June 17, 2026 at 2:06 pm

    You cannot make cross-domain requests using jQuery’s $.ajax, see Same origin policy so that is why your first solution does not work.

    Edit: I am not familiar with how Google’s OpenID works, but as a user I would not use an app that logs me out of Google when I want to logout of the app; that’s a bad user experience.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Google Maps for my website and I wander how can I
I'm using <mx:LinkButton label=www.google.com click=navigateToURL(new URLRequest(event.currentTarget.label.toString())) /> to open a browser window to display
Hey guys I am using open id authentication on my website and after authenticating
I'm using .Net Open ID ( http://code.google.com/p/dotnetopenid/ ) I'm trying to add OpenId to
I am mapping some concert locations on google maps, using data from Songkick.com's API.
When using FB or Google + I can paste a link of any website
I'm hosting my website using Google App Engine. It's a pretty simple website, but
I am trying to make a website using Google API V3 to show your
So I need to open tabs from my website to other websites using JavaScript
I am using MVC3 and jQuery. I am trying to open an external website.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.