[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 107862] refresh after POST issues POST request
From:       Niels <zorglub_olsen () hotmail ! com>
Date:       2006-06-02 16:57:58
Message-ID: 20060602165758.5771.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=107862         




------- Additional Comments From zorglub_olsen hotmail com  2006-06-02 18:57 -------
Hehe, this bug just bit me again! Only 2 months ago I made comment #1, and I already \
forgot about the issue.

Anyway, the problem is still there in 3.5.2.

I'm attaching a small testcase. It works like this:

1) press the submit button
2) the page is requested with POST
3) a number is incremented
4) the page is reloaded with GET
5) the number is shown
6) GOTO 1)

If I press Reload in Firefox or Opera, the current page is reloaded (with GET, _not_ \
incrementing the number), Konqueror shows the "do you really want..." message.

On the other hand: The Back-button works in Konqueror, but not in Firefox or Opera.



<?php

session_start();


if ($_SERVER['REQUEST_METHOD']=='POST') {
	//inc post_number
	if (!array_key_exists('post_number', $_SESSION)) {$_SESSION['post_number']=0;}
	$_SESSION['post_number']++;
	//redirect
	header('Location: http://localhost/test/test.php');
	exit();
}
else {
	//show a simple form
	echo "<form method='post'><input name='whatever'><input type='submit'></form>";
	//show post_number
	if (array_key_exists('post_number', $_SESSION)) {echo 'Post number: \
'.$_SESSION['post_number'];} }

?>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic