[sync] SyncML session problem
Jan Schneider
jan at horde.org
Fri Feb 27 09:09:06 PST 2004
Zitat von Anthony Mills <amills at gascard.net>:
> Most of the code should be in the correct place and in the correct
> order. The main problem I seem to be having is with State. The State
> variable is stored in $_SESSION['SyncML.state'], but it will not retain
> the state across multiple http requests. This is probably my fault, I
> think it is the mutable/immutable problem. If you look at |function
> getStateFromSession($sourceURI, $locName, $sessionID) on line 166 of
> SyncML.php, we create the session, and the session does persist. We do
> not have to create a new State on the next request. The problem is the
> isAuthorized is false. It was true on the last request. I may not be
> updating the State in |$_SESSION['SyncML.state']| correctly. Does
> anyone know what I could be doing wrong?
You probably overwrite/delete/whatever the horde session (where
authentication details are stored) with your sync session.
If you use Horde's auth mechanisms, you already *have* a session that you
can use and don't need to create your own one.
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