php - Zend Framework 2 Application inside Zend Framework 1 Application and Session Sharing -


before explaining situation, here small briefing of system running , overall experience web programming:

development environment: ubuntu server 4.14 64-bit, apache 2, php , mysql database. experience: not have experience php, main language using current project (it has been 3 years since last worked web programming; these last few years focus on development of desktop apps).

i developing new website company , of application code ready. application developed in zend framework 2 (php) + doctrine 2. few aspects missing, are:

1 - client has website works educational social network focused on providing platform students , teachers interact , share knowledge , ideas. work related development of new interface defined 'relational-modular interface' consisting in new way of displaying information users of platform. website client has developed in zend framework 1, , need new application coexist old application in same domain. far good. the question is: these frameworks have structure of files , directories not understand yet, particularly concerning implementation of zend framework 2 when organized within implementation of zend framework 1. in simpler terms, need have zf2 application have developed running inside functional zf1 application [there reasons choice that, albeit counter intuitive @ first glance, give valuable time work on transition original platform our new system]. reason running zf2 inside zf1 @ points in old application [zf1], user redirected new application [zf2] without ever leaving domain.

2 - both applications [zf1 , zf2] use same domain (eg -..> domain.com). old application resides in subdomain (zf1 -> school.domain.com) and, now, new application located in subdomain of old application (zf2 -> imr.school.domain.com). point, suppose none of complicated accomplish. however, using aforementioned structure still can't read session data created in parent domain (school.domain.com) subdomain (imr.school.domain.com), apparently setting cookies. need read , set these session values in order user able log in relational modular interface , redirected old application keeping session active (and vice versa).

how can achieve this?

in case needs answer problem, i've found solution:

run zf1 , zf2 together

unfortunately, can't use sub-domains. had use school.domain.com/imr. not i've expected, works.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -