php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19818 Page expires when using sessions with file input
Submitted: 2002-10-08 11:17 UTC Modified: 2002-10-08 14:46 UTC
From: volpato at adaptanet dot com dot br Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.2.3 OS: RH linux 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: volpato at adaptanet dot com dot br
New email:
PHP Version: OS:

 

 [2002-10-08 11:17 UTC] volpato at adaptanet dot com dot 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 !


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-08 12:14 UTC] 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 13:10 UTC] volpato at adaptanet dot com dot 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 14:46 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 01:01:35 2025 UTC