Connecting Tech Pros Worldwide Help | Site Map

$_SESSION

Behrang Karimibabak
Guest
 
Posts: n/a
#1: Jul 17 '05
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


Justin Koivisto
Guest
 
Posts: n/a
#2: Jul 17 '05

re: $_SESSION


Behrang Karimibabak wrote:
[color=blue]
> 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??[/color]

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.
Savut
Guest
 
Posts: n/a
#3: Jul 17 '05

re: $_SESSION


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...[color=blue]
> 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
>
>[/color]

Savut
Guest
 
Posts: n/a
#4: Jul 17 '05

re: $_SESSION


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...[color=blue]
>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...[color=green]
>> 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
>>
>>[/color]
>[/color]

Closed Thread