Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2005
    Location
    Louisville, Kentucky
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    session_start() problems

    okay, i have a problem with a very simple piece of code, it was working previously without any errors, but now it returns this error:


    Warning: open(/tmp\sess_dd4a9f65c1728908cb53610571a6d537, O_RDWR) failed: No such file or directory (2) in c:\phpdev5\www\htmlwizard\index.php on line 5

    Warning: open(/tmp\sess_dd4a9f65c1728908cb53610571a6d537, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

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


    and the code is just

    session_start();


    Can anybody help me with this? I really do not understand what is wrong
    What was I thinking?
    Email Me

  • #2
    New Coder
    Join Date
    Dec 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    find "php.ini" in your C:\WINDOWS\ folder and change the path for variable "session.save_path" to "c:\windows\temp\"
    Code:
    session.save_path = c:/windows/temp/
    restart apache


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •