| [RESOLVED] Automatic User Logout error in Internet Explorer [message #10965] |
Fri, 25 August 2006 23:28  |
peterVG Messages: 27 Registered: March 2006 Location: Vancouver, Canada |
Junior Member |
|
|
I am having a problem with an automatic user logout error that occurs in Internet Explorer but not in Mozilla Firefox.
I'll use the Askeet example to describe (although this is also happening in my own application).
After correctly completing the Askeet Day 6 user login tutorial, I am able to login and establish a user session with the sample 'fabpot' user in Firefox.
However, it appears that in Internet Explorer, the user session is never able to initialize.
When comparing the WebDebug Globals for both browser instances, I see that the Firefox instance has created a cookie and has initialized a session for user 'fabpot'.
However the IE instance does not have a cookie set and did not initialize a user session.
I have been crawling through the XDebug stack trace but I can't figure out why the user session is failing to initialize on IE while it does work on Firefox.
I have replicated this error on two seperate machines. I am using Symfony v0.6.3, PHP v5.1.4, Mozilla 1.5 and IE v6.0. I have set the IE security settings to allow all cookies.
Below is a screen capture of the stack trace messages. The Firefox messages are identical, except that it does not include steps 5 & 6 where the user is logged-out.
[Updated on: Sun, 27 August 2006 23:42]
|
|
|
|
| Re: Automatic User Logout error in Internet Explorer [message #11005 is a reply to message #10965 ] |
Sun, 27 August 2006 02:25   |
Draven Messages: 760 Registered: January 2006 |
Faithful Member |
|
|
Well the problem is clear...
Warning: Invalid argument supplied for foreach() in C:\PHP\PEAR\symfony\util\Spyc.class.php on line 222
That warning error is being printed so you cannot set a cookie because the headers already sent.
A Spyc.class.php error is generally a warning that you have a bad yml file. You are most likely missing a ':' colon somewhere and it's messing up the foreach loop when trying to parse the yml file. Just for extra info, spyc is the yaml parser. I would first check any yaml files in the module you are trying to access like a view.yml, security.yml or module.yml file and make sure they are correctly formated.
[Updated on: Sun, 27 August 2006 02:27]
|
|
|
|
| [RESOLVED] Automatic User Logout error in Internet Explorer [message #11021 is a reply to message #10965 ] |
Sun, 27 August 2006 23:40  |
peterVG Messages: 27 Registered: March 2006 Location: Vancouver, Canada |
Junior Member |
|
|
Well, after I determined that it wasn't any application configuration settings that was causing my error, it was obvious that there was an issue with the HTTP communication.
I finally decided to check my Apache virtual server settings.
The applications that were dropping the user sessions (i.e. not setting a cookie) had an '_' underscore in their virtual Servername (e.g. 'test_askeet').
This was interfering with IE's HTTP communication. Once I removed the underscore from the virtual server name I was able to maintain user sessions in IE again!!
[Updated on: Sun, 27 August 2006 23:41]
|
|
|