This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » General discussion » [RESOLVED] Automatic User Logout error in Internet Explorer
[RESOLVED] Automatic User Logout error in Internet Explorer [message #10965] Fri, 25 August 2006 23:28 Go to next message
peterVG  is currently offline 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.

index.php/fa/126/0/

[Updated on: Sun, 27 August 2006 23:42]

Re: Automatic User Logout error in Internet Explorer [message #11003 is a reply to message #10965 ] Sun, 27 August 2006 01:03 Go to previous messageGo to next message
peterVG  is currently offline peterVG
Messages: 27
Registered: March 2006
Location: Vancouver, Canada
Junior Member
O.K. It seems like no one is willing or able to help me identify what the problem is with my dropped user sessions.

In the meanwhile, I am continuing my hunt to track this down. I'll keep posting here in the hope that someone can give me a hint or advice or, at the very least, to keep a log for myself to address this issue.

The problem is essentially that I cannot start/maintain a user session in IE. It would appear from the Xdebug messages (listed below) that a session cookie cannot be sent because headers were already sent.

Any suggestions?

  • Warning: Invalid argument supplied for foreach() in C:\PHP\PEAR\symfony\util\Spyc.class.php on line 222
  • Warning: session_start() [<a href=&apos;function.session-start&apos;>function.session-start </a>]: Cannot send session cookie - headers already sent by (output started at C:\PHP\PEAR\symfony\util\Spyc.class.php:222) in C:\PHP\PEAR\symfony\storage\sfSessionStorage.class.php on line 62
  • Warning: session_start() [<a href=&apos;function.session-start&apos;>function.session-start </a>]: Cannot send session cache limiter - headers already sent (output started at C:\PHP\PEAR\symfony\util\Spyc.class.php:222) in C:\PHP\PEAR\symfony\storage\sfSessionStorage.class.php on line 62
  • Warning: Cannot modify header information - headers already sent by (output started at C:\PHP\PEAR\symfony\util\Spyc.class.php:222) in C:\PHP\PEAR\symfony\response\sfWebResponse.class.php on line 229
  • Warning: Cannot modify header information - headers already sent by (output started at C:\PHP\PEAR\symfony\util\Spyc.class.php:222) in C:\PHP\PEAR\symfony\response\sfWebResponse.class.php on line 241
Re: Automatic User Logout error in Internet Explorer [message #11005 is a reply to message #10965 ] Sun, 27 August 2006 02:25 Go to previous messageGo to next message
Draven  is currently offline 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]

Re: Automatic User Logout error in Internet Explorer [message #11019 is a reply to message #11005 ] Sun, 27 August 2006 17:17 Go to previous messageGo to next message
peterVG  is currently offline peterVG
Messages: 27
Registered: March 2006
Location: Vancouver, Canada
Junior Member
Draven,

Thanks very much for your reply. Yes, you are correct, the Spyc.class error and resulting 'header' errors were the result of an additional space in my app's settings.yml file.

Unfortunately, this was an extra space I had introduced in the course of trying to track down the original problem.

I've resolved the Spy.class error but now I am still back to hunting down the original dropped user session problem.

I'v tried removing different variables in my system environment (cookie settings, firewall restrictions, etc.) as well as comparing ALL configuration settings between the working app and the non-working app. Still nothing but will keep at it....
[RESOLVED] Automatic User Logout error in Internet Explorer [message #11021 is a reply to message #10965 ] Sun, 27 August 2006 23:40 Go to previous message
peterVG  is currently offline 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]

Previous Topic:[resolved] Large file upload fails.
Next Topic:Zend_Search_Lucene & sf
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software