Dual PHP installation and session sharing

Dual PHP installation and session sharing

am 17.07.2009 22:04:38 von Bruno Fajardo

--0016e642d49a4bdb41046eec4cd8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi all,

I'm using Apache/2.2.3 (Linux/SUSE), running PHP 4.4.7 in CGI mode, in a
dual installation with PHP 5.1.2 running as an Apache module.
Scripts with .php5 extension are executed by PHP 5, and those with .php are
executed by PHP 4, and everything runs as expected.
My question is: is it possible to share session data between .php and .php5
scripts in this environment? All my tests failed.

Thanks in advance!

--0016e642d49a4bdb41046eec4cd8--

Re: Dual PHP installation and session sharing

am 20.07.2009 01:52:25 von zareef ahmed

--0015174c17b4a46cc8046f17b6b1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Sat, Jul 18, 2009 at 1:34 AM, Bruno Fajardo wrote:

> Hi all,
>
> I'm using Apache/2.2.3 (Linux/SUSE), running PHP 4.4.7 in CGI mode, in a
> dual installation with PHP 5.1.2 running as an Apache module.
> Scripts with .php5 extension are executed by PHP 5, and those with .php are
> executed by PHP 4, and everything runs as expected.
> My question is: is it possible to share session data between .php and .php5
> scripts in this environment? All my tests failed.


have you tried using database as session storage and setting session id
manually in your application.

>
>
> Thanks in advance!
>



--
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net

--0015174c17b4a46cc8046f17b6b1--

Re: Dual PHP installation and session sharing

am 20.07.2009 14:08:40 von Bruno Fajardo

Hi, Zareef.

I have not tried storing session in a database, and I think it's not
an option in my case, since I'm working on a legacy software that uses
distributed databases across several servers.

Actually, I guess it would be easier to setup a new webserver, running
PHP 5 only, and discontinue the current one. But if there's a chance
to share session in the actual environment, I would certainly prefer
that.

Thanks for the reply!

2009/7/19 Zareef Ahmed
>
>
> On Sat, Jul 18, 2009 at 1:34 AM, Bruno Fajardo wrote:
>>
>> Hi all,
>>
>> I'm using Apache/2.2.3 (Linux/SUSE), running PHP 4.4.7 in CGI mode, in a
>> dual installation with PHP 5.1.2 running as an Apache module.
>> Scripts with .php5 extension are executed by PHP 5, and those with .php are
>> executed by PHP 4, and everything runs as expected.
>> My question is: is it possible to share session data between .php and .php5
>> scripts in this environment? All my tests failed.
>
> have you tried using database as session storage and setting session id manually in your application.
>>
>>
>> Thanks in advance!
>
>
>
> --
> Zareef Ahmed :: A PHP Developer in India ( Delhi )
> Homepage :: http://www.zareef.net

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