dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Failed to access session file

  1. #1
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    219

    Failed to access session file

    I have a problem getting php to create sessions. This is what I get:

    Warning: session_start() [function.session-start]: open(var/www2/temp/sess_63596b3c981937e00b96990fda83a90e, O_RDWR) failed: No such file or directory (2) in /var/www2/html/login.php on line 1

    It fails to create the session.

    The tmp directory is set to 777. login.php should've access to it.

    That's the dir in php.ini. What's going on?

    I examined the directory, and the session sess_63596b3c981937e00b96990fda83a90e is there. Thing is I see -rw----- in permissions.

    Could that be the problem? If so, how do I fix it?

    _________________________________________________________________
    http://www.cttemplates.com

  2. #2
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    219
    Okay, I figured this one out:

    The directory /tmp in Linux has the setting drwxrwxrwt. Notice the t at the end.
    This is what the other directories were lacking.

    Where the t means "sticky". This is to allow session files to be read, written, and deleted only by the software that created them. That's why session wasn't working in the other directory.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles