Bug #15310 Updated: when use object method call session register doesn't work

From: Date: Fri, 26 Jul 2002 03:31:33 +0000
Subject: Bug #15310 Updated: when use object method call session register doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15261@lists.php.net to get a copy of this message
ID: 15310 Updated by: bemore15@yahoo.com Reported By: nail@bowling.nsk.su Status: No Feedback Bug Type: Session related Operating System: linux PHP Version: 4.1.1 New Comment: I have this bug on Windows 2000 PHP 4.2.1. $member = $auth->create_member_object($login, $password); $_SESSION["member"] = $member; $member->init(); ... $member->init() redirects the session to another page That page starts: <? require ("includes/common.php"); $member = $_SESSION["member"]; ... I have this bug regardless of the order of the following lines: require ("includes/common.php"); $member = $_SESSION["member"]; session_start() ... The output is: Notice: Undefined index: member in [file].php on line 4 Previous Comments: ------------------------------------------------------------------------ [2002-07-02 01:00:07] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-06-01 11:43:36] mfischer@php.net Somehow the responses got out of sync. Please a) try a newer version of PHP (we're at 4.2.1) and b) try a new, self-contained example with the suggestions given. ------------------------------------------------------------------------ [2002-04-14 08:12:25] sniper@php.net reopen..the feedback _was_ given. ------------------------------------------------------------------------ [2002-04-14 00:00:02] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-02-01 02:49:31] nail@bowling.nsk.su I mean value of $_SESSION['time'] lost at refresh. When I comment line $test->t() script works correctly: Array ( [time] => 1012549372 ) ------------------new _SESSION:-------------------------- Array ( [time] => 1012549373 ) When I remove comment the output is like this (don't forget begin new session): Array ( ) ------------------new _SESSION:-------------------------- Array ( [time] => 1012549537 ) ------------------------------------------------------------------------ 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/15310 -- Edit this bug report at http://bugs.php.net/?id=15310&edit=1

« previous php.bugs (#15261) next »