[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 64182] When closing the konqueror window that created the
From: Harald Fielker <fielker () informatik ! fh-augsburg ! de>
Date: 2004-02-29 22:42:49
Message-ID: 20040229224249.14609.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=64182
fielker informatik fh-augsburg de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fielker informatik fh-
| |augsburg.de
------- Additional Comments From fielker informatik fh-augsburg de 2004-02-29 23:42 \
------- I have the same problems with that cookie bug. I will attach a PHP script.
I use PHP "4.3.4" The bug will only happen if in php.ini the value \
"session.cookie_lifetime" is set to zero. Which means "Lifetime in seconds of cookie \
or, if 0, until browser is restarted." Of course you will need session ids as \
cookies: "session.use_cookies = 1". Both values are default for php 4.3.4.
In order to check the bug you will have to do the following steps:
Close ALL Konqueror instances.
1) Put "bug.php" into your $HOME/public_html or $HOME/WWW (I asume a working \
Php/Apache setup). 2) Load the file http://localhost/~USER/bug.php.
3) The window will show a "dummy data was empty - setting to 1078092929 " (or \
similar) at first start. 4) Open the Popup with the link.
5) Close the Popup in the Popup Window.
6) Click "Reload" - you will get a "if you open and closed the popup you got the \
bug..." because the close event of the Popup killed the cookie. The cookie will be \
also killed if you close the window with the window [X] button.
I verified this this konquerors cookiemanager.
The cookie has to be kept until the last process of konqueror dies! Not until a \
window is closed.
My workarond was to set the cookie livetime to 3600 in php.ini: \
ession.cookie_lifetime = 3600. ;) So the Konqueror bug won't hurt my PHP \
developement.
So - bug or feature?
This is a bug! Mozilla / Internet Explorer handles this correct.
-- bug.php --
<?
if( isset($_GET["popup"]) ) {
session_start();
echo "hi in popup!<br><br>";
echo "Session ID: " . $_REQUEST["PHPSESSID"] . "<br>";
echo "Session dummy data: " . $_SESSION["dummy"] . "<br>";
echo "<p><a href=\"javascript:window.close()\">Popup close</a></p>";
exit;
} else {
session_start();
echo "Session ID: " . $_REQUEST["PHPSESSID"] . "<br>";
echo "Session dummy data: " . $_SESSION["dummy"] . "<br>";
if( strlen( $_SESSION["dummy"] ) == 0 ) {
$dummy = time();
echo "dummy data was empty - setting to $dummy <br>";
$_SESSION["dummy"]=$dummy;
if( isset( $_GET["reload"] ) ) {
echo "if you open and closed the popup you got the bug...<br>";
}
}
}
?>
<script type="text/javascript">
function popup(){
F = window.open( "bug.php?popup=1","popup","width=400,height=300");
}
</script>
<p><a href="javascript:popup()">Popup open</a></p>
<p><a href="bug.php?reload=1">Reload</a></p>
-- bug.php end --
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic