|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-28 11:14 UTC] robemail at gmail dot com
[2008-08-28 21:10 UTC] jani@php.net
[2008-09-01 02:09 UTC] robemail at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 13:00:02 2025 UTC |
Description: ------------ Have a php page on a linux web server. Access it publicly, over the internet, in XP with MS IE, and all is ok: You see: AmazingBob. If you use plink, or any ssh tunneling software, to establich an SSH tunnel, and access the page via a redirected port, you only get: Bob Somehow the includes or the $_SESSION vars are all empty. (This may not be a bug if I missed something, but please tell me! like - should I call session_start prior to includes to get it to work?) Reproduce code: --------------- <?php header("Cache-Control: no-cache, must-revalidate"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // set up session vars in includes include('this_file.php'); include('that_file.php'); // Setup the sessions session_start(); //get the url param $urlparam = $_GET['myparam']; //if the include set up $_SESSION[SsessionVar] to //be the string "Amazing" $newvar = $_SESSION[SsessionVar]$urlparam; echo '$newvar'; //To see good results (AmazingBob) call this with //http://1.1.1.1/thepage.php?myparam=Bob //To see problem, call the web page after setting up ssh tunnel as //http://localhost:8080/thepage.php?myparam=Bob ?> Expected result: ---------------- AmazingBob Actual result: -------------- Bob