#19818 [Opn->Fbk]: Page expires when using sessions with file input
| From: | sniper@php.net | Date: | Tue, 08 Oct 2002 17:14:56 +0000 |
| Subject: | #19818 [Opn->Fbk]: Page expires when using sessions with file input | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21829@lists.php.net to get a copy of this message | ||
ID: 19818
Updated by: sniper@php.net
Reported By: volpato@adaptanet.com.br
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: RH linux 7.1
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-10-08 11:17:37] volpato@adaptanet.com.br
Try this :
********* BEGIN script.php **********
<?php
session_cache_limiter('private');
session_start();
?>
<html>
<body>
<form method="post" action="script.php"
enctype="multipart/form-data">
<input type="submit" name="sub" value="submit">
<input type="file" name="any" size="50">
</form>
<br>
</body>
</html>
************** END ************
Now, just click "sumbit" a couple times and try to use yor
browser "Back" button. The page will expire.
To solve this, just change the following line :
<input type="file" name="any" size="50">
to :
<input type="file" name="" size="50">
Remember that when calling this script again you must change the way
you called it at the first time, i.e.,
http://server.com/script.php?something .
So, click "submit" a few times again and click "Back".
At this time the page won't expire.
I tryed this with IE 6.0 / Windows XP and IE 5.5 / Windows 98.
Thanks for your support !
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19818&edit=1