PHP & session doesn't work like it should

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BuildHome
    New Member
    • Aug 2010
    • 3

    PHP & session doesn't work like it should

    Hello,

    I have windows 2008 R2 and IIS 7.5 with PHP 5.2.4.
    I've tried to upgrade to PHP 5.3.3 and the same problem.

    I'm using WORDPRESS or phpmyadmin that need to use session.
    I've enabled and gave the folder write permissions.

    When I'm trying to use the session its created but its forgotten...


    For example, i've created this page:


    Code:
    <?php
    
    session_start();
    
    $_SESSION['i'] = isset($_SESSION['i']) ? $_SESSION['i'] + 1 : 1;
    
    echo $_SESSION['i'];
    
    ?>
    I tried to refresh it more than 50 times, the result is always 1 but in the session folder I have 50 files...
    The session is always re-created and not modified, its like the PHP forgot it...always create new ones..

    What is the problem? It's make me crazy. I tried everything for more than 10 hours.

    Thank you!
  • BuildHome
    New Member
    • Aug 2010
    • 3

    #2
    Problem Solved (header problem).

    Comment

    • jogeshp
      New Member
      • Sep 2010
      • 2

      #3
      dear you have to sent error message also so that problem can easily understand,,

      any way congratulation to solved your prob..

      Comment

      • BuildHome
        New Member
        • Aug 2010
        • 3

        #4
        There wasn't any error.
        It was a problem with the HEADER (PHPSESSION) that was removed all the time...

        Comment

        • jogeshp
          New Member
          • Sep 2010
          • 2

          #5
          humm
          ,,

          ok :)

          take care

          Comment

          Working...