Hello

I am proven the example that comes in the manual from php for the sessions, but not with himself that work to me, always it gives the same error me:

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\tmp) in Unknown on line 0

my php.ini:

[Session]
session.save_handler = files
session.save_path = c:\tmp

and the directory c:\tmp exists.
somebody can help me ?, my system this made up of php 4.0.2 and apache 1.3.12 in Windows millenium.

Thanks for advanced.

    3 months later

    I found my PHP4 session functions not work in IIS4 and NT4.0.
    Finally I found soultion... ;

    (1) Set your PHP4 running in CGI mode just like PHP3, not in ISAPI mode
    written in installation guide. This makes more hard drive access and
    slows the server, but they really work.

    (2) Open PHP.INI file and change the variable \"session.save_path\" as
    the correct directory name. And, you must make that directory in every
    (!) drive where your PHP application files are.

    (example) My server has wwwroot directory in d: drive and more virtual
    directories in e: drive. I changed the value of \"session.save_path\" in
    PHP.INI file like this:

    session.save_path = /temp

    and I made the directory named \"TEMP\" in c:\(already exists), d:\, and
    e:\ drives...

    Now can I see my session functions running well...

    I hope this problem to be fixed in next version.
    Good Luck!

      6 months later

      I have the same problem

        a month later

        I have the same problem

          Only solution that I find
          In php.ini

          display_errors = Off

          ; For production web sites, you're strongly encouraged
          ; to turn this feature off, and use error logging instead (see below).
          ; Keeping display_errors enabled on a production web site may reveal
          ; security information to end users, such as file paths on your Web server,
          ; your database schema or other information.

            a month later

            and I made the directory named \"TEMP\" in c:\(already exists), d:\, and
            e:\ drives...

            This is the only thing I did AND IT WORKS
            Thanks !

              4 months later

              Thanks to steen.

              I have installed my apache in drive C. However, I created the htdocs folder in drive E.

              The default of session.save_path in php.ini is:
              session.save_path = /temp
              which is ok.

              So I have to create the new folder named "TEMP" in drive E:\

              Then it works 🙂 Thanx a lot

                Write a Reply...