session problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    session problem

    I have a problem with session in my version of PHP
    I use WinXP (FAT32), Apache, latest PHP.
    In Linux, Apache, latest PHP instead it works fine!
    So, my program is:
    ----------------In Windows returns always NULL!---------------
    <?php
    session_start() ;
    var_dump($_SESS ION['key']);
    $_SESSION['key'] = 'value';
    ?>
    <a href=index.php> reload</a>
    ------In Linux returns first time NULL and after returns 'value'-----
    my PHP.INI contains:
    -----------------------
    [Session]
    session.save_ha ndler = files
    session.save_pa th = /windows/temp
    session.use_coo kies = 1
    ; session.use_onl y_cookies = 1
    session.name = PHPSESSID
    session.auto_st art = 0
    session.cookie_ lifetime = 0
    session.cookie_ path = /windows/temp
    session.cookie_ domain =
    session.seriali ze_handler = php
    session.gc_prob ability = 1
    session.gc_divi dend = 100
    session.gc_maxl ifetime = 1440
    session.bug_com pat_42 = 1
    session.bug_com pat_warn = 1
    session.referer _check =
    session.entropy _length = 0
    session.entropy _file =
    ;session.entrop y_length = 16
    ;session.entrop y_file = /dev/urandom
    session.cache_l imiter = nocache
    session.cache_e xpire = 180
    session.use_tra ns_sid = 0
    url_rewriter.ta gs = "a=href,area=hr ef,frame=src,in put=src,form=,f ieldset="
    --------------------

    Where is the problem????

    Thanks


  • Pedro

    #2
    Re: session problem

    <- Chameleon -> wrote:
    [...][color=blue]
    >----------------In Windows returns always NULL!---------------
    ><?php
    >session_start( );
    >var_dump($_SES SION['key']);
    >$_SESSION['key'] = 'value';
    >?>
    ><a href=index.php> reload</a>
    >------In Linux returns first time NULL and after returns 'value'-----
    >my PHP.INI contains:[/color]
    [...][color=blue]
    >session.cookie _path = /windows/temp[/color]
    [...][color=blue]
    >Where is the problem????[/color]


    in session_cookie_ path.

    Try
    session.cookie_ path = /


    --
    I have a spam filter working.
    To mail me include "urkxvq" (with or without the quotes)
    in the subject line, or your mail will be ruthlessly discarded.

    Comment

    • Guest's Avatar

      #3
      Re: session problem

      > Try[color=blue]
      > session.cookie_ path = /[/color]

      Thank you friend!


      Comment

      Working...