ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> phpdoc
phpdoc
[PHP-DOC] #37926 [Opn]: Session var don't get setted
by Thomas At Ecommerce Dot Com other posts by this author
Jun 30 2006 2:54AM messages near this date
[PHP-DOC] Re: CHM build machine - Was[2]: [PHP-DOC] #34026 [Ver->Opn]: Polish CHM is corrupted | [PHP-DOC] สินเชื่อดอกเบี้ยต่ำ-สำหรับผู้ทำงานประจำหรือเจ้าของกิจการหรือผู้ที่อยากเครียหนี้บัตรเครดิตหรือสินเชื่อเก่าดอกแพงๆ
ID:               37926
 User updated by:  thomas at ecommerce dot com
 Reported By:      thomas at ecommerce dot com
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: SuSE Linux 10.0
 PHP Version:      5.1.4
 New Comment:

So, does this get fixed at least in the documentation? :)

I still don't understand why this can't get fixed, a lot of user crys
because of the 'magic feature' of the session and such problems.


Previous Comments:
------------------------------------------------------------------------

[2006-06-28 13:35:11] thomas at ecommerce dot com

Ok, but still, there is nothing in the documentation that explain this
problem or show it, how to avoid it.

Moved to Documentation problem

------------------------------------------------------------------------

[2006-06-28 13:29:53] tony2001@[...].net

> Can i get a status update on this bug?
Yes. Don't try to outsmart session extension by changing $_SESSION
array itself. This way $_SESSION looses its magical features and the
only result you can get is invalid/broken data.
This is expected and I have serious doubts it's going to be changed
ever.

------------------------------------------------------------------------

[2006-06-28 13:25:21] thomas at ecommerce dot com

Can i get a status update on this bug?

------------------------------------------------------------------------

[2006-06-28 09:57:13] thomas at ecommerce dot com

Here is also an interesting issue:

When i use the 2nd example code ( the one with $tmp = $_SESSION);

and i put

unset($tmp);

after it or try to assign 
$tmp['x'] = 'y';

then the $_SESSION assignment startin again to work. Please
investigatte ASAP.

------------------------------------------------------------------------

[2006-06-28 09:47:34] thomas at ecommerce dot com

Same problem with this Code example:

<?php
ob_Start();
session_start();

var_dump($_SESSION);

$_SESSION['asdf'] = "cool";

$tmp = $_SESSION;

$cool = 'test';

$_SESSION['me'] = $cool;

var_dump($_SESSION);

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/37926

-- 
Edit this bug report at http://bugs.php.net/?id=37926&edit=1

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved