#19818 [Opn->Bgs]: Page expires when using sessions with file input
| From: | sniper@php.net | Date: | Tue, 08 Oct 2002 19:46:26 +0000 |
| Subject: | #19818 [Opn->Bgs]: Page expires when using sessions with file input | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21845@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: Bogus
Bug Type: Session related
Operating System: RH linux 7.1
PHP Version: 4.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Sorry, I accidently selected wrong solution..this is not any bug. So
please ask on some support forum how to deal with this.
Previous Comments:
------------------------------------------------------------------------
[2002-10-08 13:10:59] volpato@adaptanet.com.br
I've got the same error with the latest CVS version.
It's a little bit crazy, but if you change the name using
javascript,
/*
<input type="file" name="" size="50"
onfocus="this.name='any'">
*/
the page won't expire.
Any ideas ?
------------------------------------------------------------------------
[2002-10-08 12:14:56] sniper@php.net
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
------------------------------------------------------------------------
[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