Possible issue with Session - Application Hangs in Firefox

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible issue with Session - Application Hangs in Firefox

derekmerren
Hello,

I have an Zend Framework application under development. It is using Doctrine 2 for persisitence. I'm using Zend_Auth and Zend_Acl.

For some reason when I use the application in Firefox the application hangs. It allows me to login but when I go any of the other views the application hangs indefititely. When I delete the session cookie it allows me to login again where the problem repeats itself.

This problem has never occured while using Chrome. I can't figure out what may be causing the problem. Any help you can give would be gratefully appreciated.

Best Regards,
   Derek
Reply | Threaded
Open this post in threaded view
|

Re: Possible issue with Session - Application Hangs in Firefox

Marco Pivetta
Did you try to debug the applications?
Can you check request and (if available) response headers?
Error logs?
Does the error occur also without Doctrine? Do you use a custom session
storage?
Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 10 August 2011 11:07, derekmerren <[hidden email]> wrote:

> Hello,
>
> I have an Zend Framework application under development. It is using
> Doctrine
> 2 for persisitence. I'm using Zend_Auth and Zend_Acl.
>
> For some reason when I use the application in Firefox the application
> hangs.
> It allows me to login but when I go any of the other views the application
> hangs indefititely. When I delete the session cookie it allows me to login
> again where the problem repeats itself.
>
> This problem has never occured while using Chrome. I can't figure out what
> may be causing the problem. Any help you can give would be gratefully
> appreciated.
>
> Best Regards,
>   Derek
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Possible-issue-with-Session-Application-Hangs-in-Firefox-tp3732370p3732370.html
> Sent from the Zend Auth mailing list archive at Nabble.com.
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Possible issue with Session - Application Hangs in Firefox

derekmerren
Hello Marco,

I've put some logging into the app to see where it is going wrong. It is going wrong in my plugin for Auth and ACL.

For some reason it gets to the line ->

if (!$auth->hasIdentity()){

Then it just stops and sits there indefinitely.

I've looked in the php session directory and it is creating the session files. The cookies are being created in the browser.

It just hangs on the hasIdentity call.

I'm not using custome session storage.

Any help would be appreciated.

Best Regards,
   Derek
Reply | Threaded
Open this post in threaded view
|

Re: Possible issue with Session - Application Hangs in Firefox

Marco Pivetta
Can you plugin a debugger? Xdebug + some IDE? Also, check if your app isn't
doing some redirect of any kind...
Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 10 August 2011 13:20, derekmerren <[hidden email]> wrote:

> Hello Marco,
>
> I've put some logging into the app to see where it is going wrong. It is
> going wrong in my plugin for Auth and ACL.
>
> For some reason it gets to the line ->
>
> if (!$auth->hasIdentity()){
>
> Then it just stops and sits there indefinitely.
>
> I've looked in the php session directory and it is creating the session
> files. The cookies are being created in the browser.
>
> It just hangs on the hasIdentity call.
>
> I'm not using custome session storage.
>
> Any help would be appreciated.
>
> Best Regards,
>   Derek
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Possible-issue-with-Session-Application-Hangs-in-Firefox-tp3732370p3732623.html
> Sent from the Zend Auth mailing list archive at Nabble.com.
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Possible issue with Session - Application Hangs in Firefox

derekmerren
Hi Marco,

Problem solved. I'm storing videos and other uploaded files off the www root. I was using readfile to serve up the files. For particularly large files I was reading chunks of them in a loop. There was a video embedded in dashboard page that you get to when you login. It was autobuffering. So Zend was not hanging it was just serving up the video file. This meant that any other action for that session would not happen untill the video was served up. So it was nothing to do with the session.

The solution was to use an apache module mod_xsendfile
-->https://tn123.org/mod_xsendfile/

With this you can store files off the www root. They are served by apache and not read into memory and outputed by PHP

Thanks for your help,
  Derek