php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7929 Too long session variables with REQUEST_URI contains last broken image path
Submitted: 2000-11-22 11:48 UTC Modified: 2000-12-30 19:48 UTC
From: david at dailyrush dot dk Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.2 OS: FreeBSD
Private report: No CVE-ID: None
 [2000-11-22 11:48 UTC] david at dailyrush dot dk
This doens't work (It'll display two different LastRecordedPage values):

<?php session_start();
  echo("1:" . $LastRecordedPage);
  session_register("LastRecordedPage");
  $LastRecordedPage = $REQUEST_URI;
  echo("2:" . $LastRecordedPage);
?>
<HTML><BODY><IMG SRC="$InvalidImagePath"></BODY></HTML>


These work (they'll display the same LastPage/LastRecordedPage value):

<?php session_start();
  echo("1:" . $LastRecordedPage);
  session_register("LastRecordedPage");
  $LastRecordedPage = $REQUEST_URI;
  echo("2:" . $LastRecordedPage);
?>
<HTML><BODY><IMG SRC="$ValidImagePath"></BODY></HTML>


<?php session_start();
  echo("1:" . $LastPage);
  session_register("LastPage");
  $LastPage = $REQUEST_URI;
  echo("2:" . $LastPage);
?>
<HTML><BODY><IMG SRC="$InvalidImagePath"></BODY></HTML>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-23 05:52 UTC] sniper@php.net
Your examples don't make any sense..
e.g. this won't work:

<HTML><BODY><IMG SRC="$InvalidImagePath"></BODY></HTML>

(You have to do <?php echo $invalidImagePath;?> )

Could you please explain WHAT you think doesn't work?

--Jani


 [2000-12-30 19:48 UTC] sniper@php.net
No feedback. Try PHP 4.0.4 and also check your scripts.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 11:01:33 2024 UTC