apache - Is it possible to share session between different PHP versions? -


i starting old app refactoring, rebuild functionality spaghetti code mvc (symfony). plan set new iis app, using subdomain. now, old app running php 5.3 can't upgraded. new app running on php 5.6. thing need carry authentication. can have login script either on old or new app. tried setting session cookie params can't working.

is possible @ or have use database? if not possible, can achieved in apache?

edit:

what i'm is:

session.cookie_domain = ".dev"  

in both php.ini. start session in one, set session variable.

session_start(); $_session['test'] = 123; 

then in second app (php 5.6) i'm trying read it:

session_start(); var_dump($_session); 

but it's empty.

apparently setting session cookie domains not work top level domains (tld), .dev

changed code to:

ini_set('session.cookie_domain', '.local.dev'); 

and able set session variables on .local.dev website , read them in new.local.dev

both apps physically in separate folders, operate 2 iis entries , using different php versions.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -