Refresh Post Data problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rameshch45
    New Member
    • Oct 2007
    • 25

    Refresh Post Data problem

    I have a PHP page that has a login form (so obviously using POST method). In order to get rid of the classical problem where the user can go back and do a refresh to reload the page even after sign-out, what I am doing is that basically opening a new window as the form target (and on logout, I do a self.close();).

    The PHP page submits Post data to a JSP page.

    Is there a better way of doing this all such that I don't have to open a new window?
  • realin
    Contributor
    • Feb 2007
    • 254

    #2
    you can get rid of the problem using a page redirect.

    you must have seen lotsa sites implement this.. They put a 5secs redirect.. using javascript to remove post data etc etc..

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      The best solution would probably be to post the data using AJAX and either redirect or display the results on the current page.
      Then there would be no page to reload. You would simply get the form again.

      Comment

      Working...