Connecting Tech Pros Worldwide Help | Site Map

$_SESSION

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 05:43 AM
Behrang Karimibabak
Guest
 
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



  #2  
Old July 17th, 2005, 05:43 AM
Justin Koivisto
Guest
 
Posts: n/a
Default 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, 05:43 AM
Savut
Guest
 
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...[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, 05:43 AM
Savut
Guest
 
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...[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]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.