$_SESSION

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Behrang Karimibabak

    $_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


  • Justin Koivisto

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

    Comment

    • Savut

      #3
      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.t u-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]

      Comment

      • Savut

        #4
        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.1366 2$sL3.2126@news 20.bellglobal.c om...[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.t u-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]

        Comment

        Working...