By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,827 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

Refresh Post Data problem

P: 25
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?
Feb 12 '08 #1
Share this Question
Share on Google+
2 Replies


realin
100+
P: 254
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..
Jun 13 '08 #2

Atli
Expert 5K+
P: 5,058
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.
Jun 13 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.