...

View Full Version : session_start();



malthus23
11-04-2010, 12:33 PM
Hi,

I have moved my website from one hosting to another, simply copied the files to the ftp, and I realized that one session_start(); is not working.

There is no absolute link, nothing I could see that helps me understand why. The only thing I have is that when I remove the session it works (though the variables are not carried forward), but with the session my page is stocked.

It may be hard with only the above info but if you have an idea it will be very welcomed!

Cheers

abduraooft
11-04-2010, 12:59 PM
It may be hard with only the above info but if you have an idea it will be very welcomed! Turn On error reporting (http://www.codingforums.com/showthread.php?p=617060#post617060) and see if anything comes out.

mlseim
11-04-2010, 01:05 PM
Your webhost has a different SESSION path ... that requires you to define what it is.

http://php.net/manual/en/function.session-save-path.php

I think this is something you need to ask your webhost about.
They must have something configured wrong with your PHP settings?

===========

copy, paste, and upload this little script ... call it "test.php":


<?php
phpinfo();
?>


Then go to the test.php page and see what it shows for SESSION settings.



.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum