[sync] SyncML session problem

Jan Schneider jan at horde.org
Fri Feb 27 09:25:09 PST 2004


Zitat von Anthony Mills <amills at gascard.net>:

> I don't think we can use Horde authentication methods.  I mean we use
> them, but we can not use the session information that goes with it.  I
> don't know how to send the SyncML client the session id created
> automagicly.  So in the method getStateFromSession, I create a new
> session with a new session id, and this seems to work fine.  The second
> http request does not create the a new state, it uses the one out of the
> session.  The values I change in state don't seem to persist, but the
> object does.  This where I run into trouble.

Without looking at the code, I assume the state you store in the session is
an object? You need to use object references then, like $_SESSION['state']
= &$state and $state = $_SESSION['state'].
Or use the session array directly, without a variable.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the sync mailing list