$_SESSION

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-09-2004
Behrang Karimibabak
 
Posts: n/a
Default $_SESSION

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


Reply With Quote
  #2 (permalink)  
Old 06-09-2004
Justin Koivisto
 
Posts: n/a
Default Re: $_SESSION

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.
Reply With Quote
  #3 (permalink)  
Old 06-09-2004
Savut
 
Posts: n/a
Default 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...
> 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
>
>


Reply With Quote
  #4 (permalink)  
Old 06-09-2004
Savut
 
Posts: n/a
Default 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...
>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
>>
>>

>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0