Connecting Tech Pros Worldwide Help | Site Map

$_SESSION

  #1  
Old July 17th, 2005, 06:43 AM
Behrang Karimibabak
Guest
 
Posts: 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


  #2  
Old July 17th, 2005, 06:43 AM
Justin Koivisto
Guest
 
Posts: n/a

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.
  #3  
Old July 17th, 2005, 06:43 AM
Savut
Guest
 
Posts: n/a

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]

  #4  
Old July 17th, 2005, 06:43 AM
Savut
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid result resource from a $_SESSION JRough answers 3 November 14th, 2008 07:45 PM
$_SESSION : Speed-up MYSQL Frequent Results Pseudonyme answers 4 February 22nd, 2008 07:15 PM
$_SESSION / $HTTP_SESSION_VARS behaviour Michael Windsor answers 12 November 7th, 2006 01:15 PM
_SESSION weirdness behind a NAT firewall/router: bug? axlq answers 21 July 31st, 2006 11:35 PM
CURL and $_SESSION problem Phil Powell answers 0 July 17th, 2005 07:58 AM