From: <an...@io...> - 2006-02-01 17:12:57
|
Antti V=E4h=E4kotam=E4ki wrote: > To me it seems that=20 > the session is always saved in the beginning of $response->send and thu= s=20 > the session is always saved even without the call in redirect-function. It seems that adapters are handling headers in redirect in a bit=20 different way. Both Standalone and CGI seem to output the headers=20 instantly, Apache2 calls function header_out (which I can find anywhere=20 - I think it should be just header) and Apache calls header-function to=20 store headers. Then each of them generates some headers in ->send phase. Maybe the fact that CGI and Standalone output headers instantly has=20 given the impression that save_session should be run over there, but i=20 think the ->send is executed from these adapters too, which would save=20 the session the second time. I will try to remove the session saving from redirects and modify all=20 adapters to just update header-accessor with the redirect information=20 (and not output it directly). I'll let you know if this seems to work. - Antti |