session_start hangs when it used to work

I had a problem with my zend application hanging with a white screen for no reason.
I narrowed it down to when

1
$adminSession = new Zend_Session_Namespace('Admin');

was executed, this is just a session? so debugging further, confirmed that session_start() hangs when it used to work.

There are lots of explanations for this, but before you start modifying ini settings, just try this

1
2
3
session_write_close();
session_start();
die(print_r($_SESSION,true));

I found this resolved the problem completely.
I then just removed this debug-code and went back to developing my zend app.

VN:F [1.9.9_1125]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.9_1125]
Rating: +1 (from 1 vote)

3,717 views

This entry was posted on Tuesday, December 13th, 2011 at 10:48 am and is filed under Php, Programming, ZF1. You can follow any responses to this entry through the RSS 2.0 feed.

Leave a Reply