Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:33:04+00:00 2026-06-11T08:33:04+00:00

I am using session_save_path() to save session data into a file. The problem I

  • 0

I am using session_save_path() to save session data into a file.

The problem I am getting though is that I am getting this warning in my Test1.php file:

Warning: Unknown: open(Session//sess_f3n6jeu79lsq91s9romabg1752, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (Session/) in Unknown on line 0

What I have done is create an init.php and place the code below in this file:

<?php
 session_save_path('Session/'); 
 ?>

Then in the Test1.php file I included this code:

<?php

ini_set('session.gc_maxlifetime',12*60*60);
ini_set('session.gc_divisor', '1');
ini_set('session.gc_probability', '1');
ini_set('session.cookie_lifetime', '0');
require_once 'init.php';                

session_start();

...

?>

In my directory it looks like this below:

Session (Folder)
init.php (file)
Test1.php (file)

What am I doing wrong? Is it the session_save_path where I am going wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:33:06+00:00Added an answer on June 11, 2026 at 8:33 am

    Look at the warning:

    Unknown: open(Session//sess_f3

    There is a ‘/’ to much. The correct path is:

    session_save_path('Session');
    

    Make sure the webserver process has access to the folder.

    Either the webserver process must be owner of the folder and permissions 700 or webserver process is not owner of the folder, permissions then 777!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a PHP session manager class that will handle user sessions in
If I save an entity using a Hibernate session, and then probe to get
I have been using SESSION Variables to enter data with loginName as way to
I have an application that has been working with session variables no problem. I
I am using the session feature of CodeIgniter, and I'm running this code: $session_id
I've built web apps before that utilize phpBB session, and user data. The common
Suppose I want to open a file in an existing Emacs session using su
Using PHP, if I set a custom session folder to store session files, what
hi guys i am uploading the images using the @PhP file upload Method @
public MyClass(int someUniqueID) { using(//Session logic) { var databaseVersionOfMyClass = session.CreateCriteria(/*criteria*/) .UniqueResult<MyClass>(); //Load logic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.