Is there anyway I can prevent data from being reposted when I hit the
back button on my browser? When I hit back I get a message from my
browser asking do I want to repost the data, can I prevent this window
from appearing?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
you can use header()
http://ie.php.net/header
rory walsh wrote:
Is there anyway I can prevent data from being reposted when I hit the
back button on my browser? When I hit back I get a message from my
browser asking do I want to repost the data, can I prevent this window
from appearing?
--
PHP
Thanks Eoghan, I have tried the following but it still reposts the data
from the form and goes back a page?
header(Cache-control: private);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);
Am I write in
rory walsh wrote:
Thanks Eoghan, I have tried the following but it still reposts the data
from the form and goes back a page?
header(Cache-control: private);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma:
Wouldn't using GET instead of POST help?
Gareth Williams
venditor.com
Buy cool stuff online at a
href=http://www.venditor.com;venditor.com/a
On 3 Mar 2005, at 14:20, Jochem Maas wrote:
rory walsh wrote:
Thanks Eoghan, I have tried the following but it still reposts the
data from the form and
Cheers, I'll take a look, I had tried a search but thunderbird didn't
find anything, even with the exact thread title I had to google it?
Anyway I'll take a look.
Jochem Maas wrote:
rory walsh wrote:
Thanks Eoghan, I have tried the following but it still reposts the
data from the form and goes
i think ive missed a few mails there...?
rory walsh wrote:
Cheers, I'll take a look, I had tried a search but thunderbird didn't
find anything, even with the exact thread title I had to google it?
Anyway I'll take a look.
Jochem Maas wrote:
rory walsh wrote:
Thanks Eoghan, I have tried the
Gareth Williams wrote:
Wouldn't using GET instead of POST help?
in a way it could - but you don't usually want to use a GET as this
can be easily spoofed (i.e. anyone could send you a link or post one in a forum
that would do the post action without warning you)
which comes down to: you should be
eoghan wrote:
i think ive missed a few mails there...?
rory walsh wrote:
Cheers, I'll take a look, I had tried a search but thunderbird didn't
find anything, even with the exact thread title I had to google it?
Anyway I'll take a look.
my first google hit on search for the exact title gave me
Yeah I got it, cheers. Actually the problem I am getting is more to do
with my session variables I think? Here is the jist of the code.
if(log out button has been pressed)
{
session_variable=no
}
if(log in button has been pressed)
{
session_variable=yes
}
if(session_variable==yes)
{
display the
rory walsh wrote:
Yeah I got it, cheers. Actually the problem I am getting is more to do
with my session variables I think? Here is the jist of the code.
if(log out button has been pressed)
{
session_variable=no
}
if(log in button has been pressed)
{
session_variable=yes
}
I'm pretty sure I am looking at cached pages but the problem with this
seems to be that some browsers support these header directives and
others don't, i.e. Firefox.
The following work in IE but not Firefox
header(Cache-control: private);
header(Cache-Control: no-store, no-cache,
rory walsh wrote:
I'm pretty sure I am looking at cached pages but the problem with this
seems to be that some browsers support these header directives and
others don't, i.e. Firefox.
The following work in IE but not Firefox
header(Cache-control: private);
header(Cache-Control: no-store,
Jochem Maas mailto:[EMAIL PROTECTED]
on Thursday, March 03, 2005 5:57 AM said:
Gareth Williams wrote:
Wouldn't using GET instead of POST help?
in a way it could - but you don't usually want to use a GET as this
can be easily spoofed (i.e. anyone could send you a link or post one
in a
Jochem Maas wrote:
Gareth Williams wrote:
Wouldn't using GET instead of POST help?
in a way it could - but you don't usually want to use a GET as this
can be easily spoofed (i.e. anyone could send you a link or post one in a
forum
that would do the post action without warning you)
which
Richard Lynch wrote:
Jochem Maas wrote:
Gareth Williams wrote:
Wouldn't using GET instead of POST help?
in a way it could - but you don't usually want to use a GET as this
can be easily spoofed (i.e. anyone could send you a link or post one in a
forum
that would do the post action without warning
POST is not a security measure. I think what's special about POST is
that it is meant to hold a lot more data. With GET there is a limit to
how long the querystring can be.
POST also has a (larger) limit.
Actually, both *could* be limitless.
A server is require to have NO LESS THAN $x for
the code.
Pedro.
-Mensagem original-
De: rory walsh [mailto:[EMAIL PROTECTED]
Enviada: quinta-feira, 3 de Março de 2005 12:01
Para: php-general@lists.php.net
Assunto: [PHP] Preventing data from being reposted?
Is there anyway I can prevent data from being reposted when I hit the
back button
'];
echo You are logged as .$name;
}
?
There are probably some errors I haven't run the code.
Pedro.
-Mensagem original-
De: rory walsh [mailto:[EMAIL PROTECTED]
Enviada: quinta-feira, 3 de Março de 2005 12:01
Para: php-general@lists.php.net
Assunto: [PHP] Preventing data from being reposted
19 matches
Mail list logo