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 7726499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:13:52+00:00 2026-06-01T05:13:52+00:00

In our login/logout javascript, which works in a modal box, I’d like to reload

  • 0

In our login/logout javascript, which works in a modal box, I’d like to reload the current page after a user logs in our out, but only if the current page was not loaded as a POST–I don’t want to try to double post data to the server.

Is there any way to tell whether window.location.reload() will be sent as a GET or a POST, so that I can redirect POSTs to our front page instead?

  • 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-01T05:13:53+00:00Added an answer on June 1, 2026 at 5:13 am

    JavaScript doesn’t have access to the request method [1], but you could check with PHP if there is any POST data, and set a JS variable:

    <script type="javascript">
        var post = <?php if(isset($_POST)) echo 'true'; else echo 'false'; ?>;
    </script>
    

    Although this is not reliable (users could manually change it) so you shouldn’t rely on this to avoid duplicate data…

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

Sidebar

Related Questions

In our login page we enter username password and then submit the form. The
A login page on our asp.net website uses https – while almost all of
I have an issue with my login functionality. When user clicks the logout link
How to logout the user from our site when they logged out from Facebook?
My goal is logout current session, then delete the running local user profile. And
I'm trying to get our login portal working, but for some reason it won't
When I try to login to our WSS demo site the authentication popup forces
Having an issue with a salesforce login on our site. When the customer fills
I am having some difficulty with one of our service providers login forms. The
In asp.net, I am able to login using forms authentication as usual, copy our

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.