session_start(); remove new headers possible ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ripples
Forum Newbie
Posts: 6
Joined: Fri Jan 18, 2008 3:36 pm

session_start(); remove new headers possible ?

Post 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 ?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: session_start(); remove new headers possible ?

Post 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.
ripples
Forum Newbie
Posts: 6
Joined: Fri Jan 18, 2008 3:36 pm

Re: session_start(); remove new headers possible ?

Post 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:
Post Reply