I have a login page that sets up some session vars after it authenticates the user, then redirects to the destination page. The auth code in the destination page checks the session and if it doesn't find the right info, it redirects to the login page.
Here's the problem: the session is fine just before the login script redirects to the destination page, but once the destination page's script starts running, there's no session (even though the cookie is still set and the session record is in my database, using Zhang's mySQL session handler with a couple of bug fixes).
Yes, the script calls session_write_close() before redirecting.
Any hints?
TIA.
--Kurt