Eep. I don't know the answer, but I'd probably tackle this by looking at how the app is written-- hopefully, all the session-handling stuff will be broken out in a separate library/class which will make thigns easier. FWIW, session handling in PHP is pretty easy, though it has a few small quirks that can bite you. I'd review php.net/session and esp. all the user comments at the bottom.
good luck, sorry I don't have more advice right now,
Eric
http://ericmueller.org