Forum Moderators: coopster

Message Too Old, No Replies

keeping session variables alive across websites

Magento, Zend framework, integration

         

naiquevin

2:19 pm on Jul 15, 2009 (gmt 0)

10+ Year Member



I am looking for a way to integrate a site developed using Zend Framework with Magento in a way that allows users to signup/login on either of the login forms and remain logged-in across both the app as well as magento

So far we have found a way to read and write data in the application database when a new user registers on Magento.
But the session object set doesnt work across the two sites...

is this thing possible or is there any other alternate approach to achieve the same effect..

thanks

andrewsmd

2:45 pm on Jul 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know how secure you would want to be but you could use a cookie to see if they are logged in. The problem there would be they could close their browser, someone else could open it up and they would still be logged in.

eelixduppy

2:52 am on Jul 16, 2009 (gmt 0)



You are going to have to store the session data in a common database that both the sites have access to and it will be as easy as grabbing the session data using an SID.

Take a look at session_set_save_handler [us.php.net] for some more ideas and information.