For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > October 2005 > Sessions and Virtual Hosts (Problem with IE)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Sessions and Virtual Hosts (Problem with IE)
Malcolm Evans

2005-10-13, 3:56 am

I'm using virtual hosts with apache v2.0.52 and PHP v4.3.9 and using
sessions to
enforce user authentication and access to each page.

Everything works quite fine for every browser, except IE and only in
the second
virtual hosts.

I've used phpinfo() to confirm that the virtual host configuration is
correctly being
passed to the browser (ie correct ServerName, DocumentRoot, ServerPort
etc etc).

I've added some further code to try an establish what the problem is.
The first
time a user is authenticated, all the session variables are correctly
set and
registered. On subsequent pages, even though a session_start() call is
used, none of the previously registered variables are available, which
subsequently causes a failure to authenticate.

The failure only happens with IE and only with the second virtual host.

I've also tried turning on register_global within php.ini (yes I know
this is a security issue),
and this still does not solve the problem.

Any ideas/suggestions? I'm rather puzzled as to what the specific
cause of the problem is.

And no the answer is not to change browsers, as over 80% of the clients
have IE.

Thanks,

Malcolm
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com