Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Oh er... what have I broke this time? RE: session_start();
Old 10-29-2005, 09:24 PM Oh er... what have I broke this time? RE: session_start();
AxE
AxE's Avatar
Skilled Talker

Posts: 62
Trades: 0
Okay... I'm sat here happily working on my webpage.. when wow... WOW... this is SO slow loading!! So I play around with a few things.. I rename my includes/ directory, so I know its nothing in there... that leaves on thing it could be. My index.php. so, I open that and comment out EVERYTHING at the top:

PHP Code:
session_start();
ob_start();
include_once(
"includes/headers.php"); 
...And the page loads instantly.

I uncomment the include_once line and the ob_start line.. and it loads instantly again. I uncomment the session_start line and... wow, so slow!

And here, I dont mean slow as in 2 seconds... more like 8 minutes to actually get the page to connect, then another 2 to get it to load up.


Has anyone had trouble with session_start this way or have any info on why this is happening? This has really confused me.. for over a year and a half I've been using session_start ive not had any trouble with it, until now...


Thanks,
AxE

EDIT: FYI - It went okay again about two minutes ago.. now its gone bad again... maybe a server problem or a server lag? I'll see what its like tommorow morning.

Last edited by AxE; 10-29-2005 at 09:46 PM..
AxE is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-30-2005, 02:10 AM
Skilled Talker

Posts: 62
Trades: 0
It really sounds like a server traffic issue - generally, applications will run faster on the second try after a change (many hosts like to install Zend or another application-caching resource saver) - eight minutes is ridiculous - and it exceeds the 30-second default timeout for a PHP script (usually set in the PHP.INI file) - maybe it's time to hop hosting providers, eh..?
__________________

Please login or register to view this content. Registration is FREE
danlefree is offline
Reply With Quote
View Public Profile Visit danlefree's homepage!
 
Old 10-30-2005, 09:01 AM
Extreme Talker

Posts: 160
Trades: 0
Do you know where your session data is being stored? ./tmp or a database for example? Either of these could be causing the slowdown and may well be located on a different system to the one serving your pages.
ElectricSheep is offline
Reply With Quote
View Public Profile
 
Old 10-31-2005, 11:53 AM
AxE
AxE's Avatar
Skilled Talker

Posts: 62
Trades: 0
Thanks for the replies...

Seems to have sorted itself again now.. must have been a server hiccup :S

danlefree - I think my host may have removed/changed the max execution time, as sometimes when I accedentally have an endless loop in my script, if I leave it (to get a coffee or whatever), when im back its still trying to load.. thats like 10 minutes later usually...

ElectricSheep - not sure mate.. im using the default session stuff to my server, but knowing my host something will have been changed :P
AxE is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Oh er... what have I broke this time? RE: session_start();
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71717 seconds with 12 queries