[dev] javascript.php patch

Chuck Hagenbuch chuck at horde.org
Tue Oct 21 10:53:54 PDT 2003


Quoting Jason Rust <jrust at rustyparts.com>:

> When testing our kronolith on IE mac today I found that it was taking
> several minutes for the page to load.  It turned out that the
> session_start() call in the Registry constructor was causing the hang.
> I think IE mac must not close it's requests to its src files correctly
> causing the lock that PHP gives the session file to sit until a timeout.
> Anyhow, I found that this can be fixed by telling javascript.php not to
> start the session.  No session variables are used in the javascript.php
> file that I could find, so I just changed the session flag to
> HORDE_SESSION_NONE.  This should also have the added benefit of speeding
> up page loads a bit.

We use preference values inside some of the javascript files that are included
by javascript.php. That requires the session to be loaded so we know what user
is logged in.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
Born right the first time.


More information about the dev mailing list