Re: $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daevid Vincent wrote:
No no no. I'm NOT passing data between servers. It's just two pages on the
same server. One that sets up the session/class and the other page just
re-loads the session.
When I talk about two different servers, I copy the entire source/db schema
from one server to the other so they are clones for all intents and
purposes.

One server works the way I'd expect.
The other doesn't.
SAME code on both. Same schema. Nearly identical LAMP versions.

keyword is 'Nearly' - please take into account that the behaviour
of php can change from version to version (sometimes the change is
completely unintentional and unwanted.):

root@DAEVID:/lockdown# php --version
PHP 5.0.3 (cli) (built: Jan  5 2006 13:18:18)

PHP5.0.3

Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.0.9, Copyright (c) 2003-2005, by Zend
Technologies
    with Zend Optimizer v2.6.0, Copyright (c) 1998-2005, by Zend
Technologies

the not working box doesn't run the Zend stuff - try turning it
off to see if that break your working machine (doubtful)


NOT WORKING BOX:
vmware apache2-php5 # php --version
PHP 5.0.5-pl3-gentoo (cli) (built: Dec 14 2005 15:44:04)

PHP5.0.5 (or even PHP5.0.5-pl3-gentoo what exotic flavor that might be)


given that the not working box is running php5.0.5 and the working box
a prior version gives me the sneaking suspicion (spelling!?) that
you may be looking at a reference related problem.

I assume your php CLI is from the same build as the apache module (or
whatever sapi your websaerver uses), correct? (otherwise you'll need
to look at the version info in phpinfo() as viewed via your webbrowser)

Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
This is why I'm saying, it's not my PHP code or database or anything like
that.
It must be some kind of server configuration, but I can't figure out what it
would be. I've compared the php.ini files and don't see anything that seems
relevant.

the session is not set to auto start on the not working server per chance?




-----Original Message-----
From: tg-php@xxxxxxxxxxxxxxxxxxxxxx [mailto:tg-php@xxxxxxxxxxxxxxxxxxxxxx] Sent: Tuesday, January 24, 2006 4:54 PM
To: php-general@xxxxxxxxxxxxx
Cc: daevid@xxxxxxxxxx
Subject: Re: $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

You say it's working on one box and not on the other? Maybe I'm wrong (and sounds like I am) but I thought that you couldn't pass objects between scripts even with serialize()?

Certainly sounds like it was working for you... can anyone clarify what objects/variables/data types can be passed from script to script and what can't?

tg, try the manual.


I know things like database connections can't be shared (that is, you can't assign a MySQL connect link to a variable then pass that variable/connect to the next script, it needs to reconnect the next time around.. or am I wrong about that too? hah)

-TG
God I'm tired

= = = Original message = = =

Thought I'd give this another shot since I still can't figure it out after
nearly a week...

I have a gentoo server that doesn't save/restore the CLASS portion of a session, but it does retain other $_SESSION values. This code works fine on
a debian box.

WORKING BOX:
[snip]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux