This is a discussion on $_SESSION within the PHP Language forums, part of the PHP Programming Forums category; Hi! I have installed EasyPHP on my computer for testing PHP-Scripts. I have also written a whole System and ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi!
I have installed EasyPHP on my computer for testing PHP-Scripts. I have also written a whole System and it works fine when I Upload it to the actual server where it should be. The problem is, on my local server..the global $_SESSION variable does not work! Which server (or PHP) settings should be changed for getting this Global variable to work?? Thanks in advance //Behrang |
|
|||
|
Behrang Karimibabak wrote:
> Hi! > > I have installed EasyPHP on my computer for testing PHP-Scripts. I have also > written a whole System and it works fine when I Upload it to the actual > server where it should be. The problem is, on my local server..the global > $_SESSION variable does not work! Which server (or PHP) settings should be > changed for getting this Global variable to work?? Quickest way to answer a question like this for yourself is to create a file with: <?php phpinfo() ?> Put this on both servers, compare output, then adjust yours to match the target server. -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. |
|
|||
|
I guess you use a EasyPHP with a PHP version older than 4.1.0. Superglobal
variables only exist since 4.1.0. Most web hosting company use at least the 4.3.x Savut "Behrang Karimibabak" <y0014827@tu-bs.de> wrote in message news:ca7l91$g54$1@rzcomm2.rz.tu-bs.de... > Hi! > > I have installed EasyPHP on my computer for testing PHP-Scripts. I have > also > written a whole System and it works fine when I Upload it to the actual > server where it should be. The problem is, on my local server..the global > $_SESSION variable does not work! Which server (or PHP) settings should be > changed for getting this Global variable to work?? > > Thanks in advance > //Behrang > > |
|
|||
|
Also forget, make sure to check your session config in php.ini and also if
your session autostart Savut "Savut" <webki@hotmail.com> wrote in message news:IpKxc.13662$sL3.2126@news20.bellglobal.com... >I guess you use a EasyPHP with a PHP version older than 4.1.0. Superglobal >variables only exist since 4.1.0. Most web hosting company use at least the >4.3.x > > Savut > > "Behrang Karimibabak" <y0014827@tu-bs.de> wrote in message > news:ca7l91$g54$1@rzcomm2.rz.tu-bs.de... >> Hi! >> >> I have installed EasyPHP on my computer for testing PHP-Scripts. I have >> also >> written a whole System and it works fine when I Upload it to the actual >> server where it should be. The problem is, on my local server..the global >> $_SESSION variable does not work! Which server (or PHP) settings should >> be >> changed for getting this Global variable to work?? >> >> Thanks in advance >> //Behrang >> >> > |