SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict isuru's Avatar
    Join Date
    Nov 2000
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't seem to get sessions working in PHP 4 at all. I created a file with just the following code:
    Code:
    <?php
    session_start();
    ?>
    and it gave me the following errors:
    Warning: open(/tmp\sess_dc06d9a6f52045b8304bcc66e3f0932d, O_RDWR) failed: m (2) in C:\Inetpub\wwwroot\bb\test1.php on line 3

    Warning: open(/tmp\sess_dc06d9a6f52045b8304bcc66e3f0932d, O_RDWR) failed: m (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

    I then had a look in my php.ini file and sessions.save_path was set to /tmp.

    Please note that I am using Win 98 and Personal Web Server with PHP 4.

    Any help to get this to work would be greatly appreciated

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to edit the php.ini file (usually in the windows directory) and find the section on sessions (near the bottom) and change the session save path to the path of your temp directory usually c:\windows\temp and it should work.
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  3. #3
    SitePoint Addict isuru's Avatar
    Join Date
    Nov 2000
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Ill try that

  4. #4
    SitePoint Addict isuru's Avatar
    Join Date
    Nov 2000
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much it works now


Bookmarks

Posting Permissions

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