php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27072 Can't view a variable stored in session_register under PHP 4.3.4
Submitted: 2004-01-28 08:40 UTC Modified: 2004-01-29 21:20 UTC
From: info at iplsoft dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.4 OS: Unix
Private report: No CVE-ID: None
 [2004-01-28 08:40 UTC] info at iplsoft dot com
Description:
------------
Since a couple of weeks, my hosting company upgraded php to 4.3.4.

From that time, all the sites I've created on my domain, don't show variables anymore stored in session_register()

So I'm a bit concerned that it will ever work again.

Hopefully you can help me out a bit.

Reproduce code:
---------------
test.php:
<?php
session_start();
session_register("name");
?>
<a href="test2.php?name=Ivan">Click here to see if my name is showing</a>

test2.php:
<?php
session_start();
?>
Hi, your name is $name
<?
session_destroy();
?>

Expected result:
----------------
Hi, your name is Ivan

Actual result:
--------------
Hi, your name is

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-28 09:24 UTC] sniper@php.net
RTFM:
http://www.php.net/manual/en/function.session-register.php

And especially everything with 'register_globals' with it.
It defaults to 'off' since 4.2.0..

 [2004-01-28 09:24 UTC] sniper@php.net
This is not any bug.

 [2004-01-29 11:37 UTC] info at iplsoft dot com
So, if this is not a bug, what the hell am I doing wrong?

Before the upgrade to 4.3.4 at my hosting company, everything worked fine.
 [2004-01-29 11:46 UTC] sniper@php.net
Please read carefully the manual pages for sessions:

http://www.php.net/session

Especially the part about 'register_globals'..
Sessions work just fine as long as they're used correctly.

This bug system is not the right place to ask support questions about how PHP is used. Please ask such questions on the appropriate mailing lists.

 [2004-01-29 14:58 UTC] info at iplsoft dot com
Problem fixed.
Thanks to a couple of friends.

Needed to include $name=$_get['name']
 [2004-01-29 21:20 UTC] magnus@php.net
Not a bug => Bogus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 02:01:32 2025 UTC