Monthly Archives: January 2013

PHP – Share Session Between Server

Basically the process is to convert the Session of Server 1, as Cookies. Then in Server 2, we convert back to Session. Just include below class in both server. Use SessionShare::encode(‘sessionpass’,’current_domain’); in Server 1 then redirect to Server 2(use header(‘Location: http://server2.com’)). Then in Server 2, include the same class, decode the Cookies that we created… Read More »