Hi All,
I just wasted the last 2 hours going round in circles trying to figure out what is going wrong. Everything works find if I return the normal text/html header. But as soon as I use a redirect instead, the session is sometimes lost.

I added logging to try and figure out what's happening. At the bottom of this email are 3 examples, 2 of which fail, one gets through. No code changes were made during the tests. You can see from the 2 that fail, 1 doesn't even make it to teardown, the other starts teardown but doesn't finish. The one that passes completes teardown.

From this I take it that something is going wrong and causing the process to die prematurely. This is losing the session file, even though the code to create the session has already ran and completed. Nothing is showing up in the error logs.

Any advice very much appreciated, I'm banging my head against a wall here :(

P.S. Just noticed I'm not the only one experiencing this http://rt.cpan.org/Public/Bug/Display.html?id=40751

Log started 2009/03/05_02:29:33
cgiapp_init complete
setup started
setup complete
cgiapp_prerun started
cgiapp_prerun complete
auth_create started
auth_create complete
session user test
### This one lost the session

Log started 2009/03/05_02:30:03
cgiapp_init complete
setup started
setup complete
cgiapp_prerun started
cgiapp_prerun complete
auth_create started
auth_create complete
session user test
teardown started
teardown complete
### This one was ok

Log started 2009/03/05_02:32:02
cgiapp_init complete
setup started
setup complete
cgiapp_prerun started
cgiapp_prerun complete
auth_create started
auth_create complete
session user test
teardown started
### This one lost the session


#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to