For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > June 2006 > #37926 [Bgs->Opn]: Session var don't get setted









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #37926 [Bgs->Opn]: Session var don't get setted
thomas at ecommerce dot com

2006-06-28, 7:59 am

ID: 37926
User updated by: thomas at ecommerce dot com
Reported By: thomas at ecommerce dot com
-Status: Bogus
+Status: Open
-Bug Type: Session related
+Bug Type: Documentation problem
Operating System: SuSE Linux 10.0
PHP Version: 5.1.4
New Comment:

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

Moved to Documentation problem


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

[2006-06-28 13:29:53] tony2001@php.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'] = "";

$tmp = $_SESSION;

$ = 'test';

$_SESSION['me'] = $;

var_dump($_SESSION);

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

[2006-06-27 13:39:04] thomas at ecommerce dot com

wrong subject

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

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com