Page 1 of 1

session_start(); remove new headers possible ?

Posted: Fri Feb 08, 2008 2:32 am
by ripples
I started using session_start(); to create sessions in my web.

Now I see that the browser loads the pages all-at-a-time instead of bit-by-bit as before. So before you could see the page load bit-by-bit but now you just see the page as a whole with no loading. How can I get it to load bit-by-bit like before ?

I see that the pages headers have changed since now there are 2 more:

Cache-Control
Expires


I have tried to fix this by:

1. placing session.cache_limiter = public inside php.ini
2. placing these headers inside every page that has sessions but there has been no effect

Code: Select all

header('Cache-Control: public');
header('Expires: none');
Anybody can help ?

Re: session_start(); remove new headers possible ?

Posted: Fri Feb 08, 2008 3:05 am
by Kieran Huggins
I have a feeling it has to do with the url-rewriter.tags being set.

My theory is that is automatically buffers the output so it can rewrite URLs should the cookies fail to load. I have no idea if you can circumvent this. Maybe enabling session.use_only_cookies would help, but then you lose the safety of the fallback method.

Your call, if this is the case at all.

Re: session_start(); remove new headers possible ?

Posted: Fri Feb 08, 2008 4:06 pm
by ripples
Your theory was totally true. :banghead:

Actually, it was: session.use_trans_sid = 1 in php.ini

Will circumvent with my own session handling, rather than php's. :idea: