session functions not working with windows XP, php 4.3.4

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

    session functions not working with windows XP, php 4.3.4

    i have two simple pages, test.php and test2.php

    test.php contains:

    <?php
    session_start() ;
    $_SESSION['test']="blah";
    ?>

    and test2.php contains:

    <?php
    session_start() ;
    print $_SESSION['test'];
    ?>

    in the php.ini file, my session save path is set to /tmp. i dont even know
    where to look for the tmp folder. also, when i go to test2.php after
    accessing test.php, the page is blank and it doesnt print "blah".

    as i mentioned in the title, im using windows xp (home edition) with PHP
    4.3.4 and apache 1.3

    thanks
    JP


  • Milos Vucic

    #2
    Re: session functions not working with windows XP, php 4.3.4


    "kingofkolt " <jessepNOSPAM@c omcast.net> wrote in message
    news:mPAjc.4336 8$GR.6079477@at tbi_s01...[color=blue]
    > i have two simple pages, test.php and test2.php
    >
    > test.php contains:
    >
    > <?php
    > session_start() ;
    > $_SESSION['test']="blah";
    > ?>
    >
    > and test2.php contains:
    >
    > <?php
    > session_start() ;
    > print $_SESSION['test'];
    > ?>
    >
    > in the php.ini file, my session save path is set to /tmp. i dont even know
    > where to look for the tmp folder. also, when i go to test2.php after
    > accessing test.php, the page is blank and it doesnt print "blah".
    >
    > as i mentioned in the title, im using windows xp (home edition) with PHP
    > 4.3.4 and apache 1.3[/color]

    1. Set your php.ini: session.save_pa th = c:\windows\temp

    if still nothing, then

    2. disable any firewalls such as ZoneAlarm and try again.


    Comment

    • Chung Leong

      #3
      Re: session functions not working with windows XP, php 4.3.4

      "kingofkolt " <jessepNOSPAM@c omcast.net> wrote in message
      news:mPAjc.4336 8$GR.6079477@at tbi_s01...[color=blue]
      > i have two simple pages, test.php and test2.php
      >
      > test.php contains:
      >
      > <?php
      > session_start() ;
      > $_SESSION['test']="blah";
      > ?>
      >
      > and test2.php contains:
      >
      > <?php
      > session_start() ;
      > print $_SESSION['test'];
      > ?>
      >
      > in the php.ini file, my session save path is set to /tmp. i dont even know
      > where to look for the tmp folder. also, when i go to test2.php after
      > accessing test.php, the page is blank and it doesnt print "blah".
      >
      > as i mentioned in the title, im using windows xp (home edition) with PHP
      > 4.3.4 and apache 1.3[/color]

      You have to create the folder used for saving session data manually. If the
      folder doesn't exist, PHP won't create it. Create folder name "tmp" on C: or
      something and set the session save path to C:/tmp.


      Comment

      • kingofkolt

        #4
        Re: session functions not working with windows XP, php 4.3.4

        "kingofkolt " <jessepNOSPAM@c omcast.net> wrote in message
        news:mPAjc.4336 8$GR.6079477@at tbi_s01...[color=blue]
        > i have two simple pages, test.php and test2.php
        >
        > test.php contains:
        >
        > <?php
        > session_start() ;
        > $_SESSION['test']="blah";
        > ?>
        >
        > and test2.php contains:
        >
        > <?php
        > session_start() ;
        > print $_SESSION['test'];
        > ?>
        >
        > in the php.ini file, my session save path is set to /tmp. i dont even know
        > where to look for the tmp folder. also, when i go to test2.php after
        > accessing test.php, the page is blank and it doesnt print "blah".
        >
        > as i mentioned in the title, im using windows xp (home edition) with PHP
        > 4.3.4 and apache 1.3
        >
        > thanks
        > JP
        >
        >[/color]

        ok it works now. thanks for the help guys

        - JP


        Comment

        Working...