SESSION is not working in IIS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bnashenas1984
    Contributor
    • Sep 2007
    • 257

    SESSION is not working in IIS

    I'm using IIS on windows XP professional SP2 and programming with PHP..
    The problem is that when I use SESSION in my programs it doesn't work in IIS and the same program works when i upload it into my website..

    Actualy my website server is LINUX.. Is it because of difference beetwen these two? LINUX and WINDOWS
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Although I dont know much about Linux I know that it is run with Apache. The more important issue is that it is really important to have your development and production platforms the same. Hey you might even want to think about a test environment. Having said all this there are probably ways to get it all working on xp, it just wont be native. Try search the site.

    Comment

    • bnashenas1984
      Contributor
      • Sep 2007
      • 257

      #3
      Thanks for your reply
      I solved the problem by searching in google.. So I write it here for those people who has the same problem...
      When you install php the configuration file ( php.ini ) must be copied in the WINDOWS directory...
      Open that file and search for : session.save_pa th =
      Then change the path to a directory which exists...
      This problem mostly occures when php is installed in a directory other than c:\php


      Enjoy

      Comment

      • momogi
        New Member
        • Sep 2007
        • 28

        #4
        Originally posted by bnashenas1984
        Thanks for your reply
        I solved the problem by searching in google.. So I write it here for those people who has the same problem...
        Thank you!!

        When you install php the configuration file ( php.ini ) must be copied in the WINDOWS directory...
        Open that file and search for : session.save_pa th =
        Then change the path to a directory which exists...
        This problem mostly occures when php is installed in a directory other than c:\php

        Enjoy
        hi..bnashenas!

        I wanna ask you a simple question. Where do you put your session.save_pa th's directory??

        My PHP is installed in C:\webserver\ph p and my session doesn't work...

        Pls help me and Thank you... :)

        Comment

        • bnashenas1984
          Contributor
          • Sep 2007
          • 257

          #5
          Hi there
          I know that was a long time ago you asked this question but I thought maybe this answer help someone.
          I recently had a problem with session after installing windows but I solved it with permiting guest user on the folder PHP stores the session
          Here is what you should do:

          Open (my computer) and go to (Tools --> Folder options --> view) and scroll down the page. you will see an option named (Use simple file sharing recomended)
          UNCHECK the box and click on OK

          Then go to the folder that PHP saves the sessions on. Right click on the folder and click on properties. Go to security part and choose the (user name) you log in to your windows with . It usualy is (Guest Account).

          Once you click on the username you can see the permitions on the list bellow. Let the user have access to that folder by checking boxes.

          I hope this helps

          Good luck

          Comment

          Working...