By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,830 Members | 2,276 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,830 IT Pros & Developers. It's quick & easy.

$_SESSION

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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 - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #2

P: n/a
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" <y0******@tu-bs.de> wrote in message
news:ca**********@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


Jul 17 '05 #3

P: n/a
Also forget, make sure to check your session config in php.ini and also if
your session autostart

Savut

"Savut" <we***@hotmail.com> wrote in message
news:Ip******************@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" <y0******@tu-bs.de> wrote in message
news:ca**********@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


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.