Warning: Invalid Argument (22) in Unknown
Hi,
I'm a novice to php, studying from the book, PHP6, Apache, MySQL Web Development. I'm in Chapter 2, trying to use sessions for the first time.
My problem is that I'm getting these warnings below the page:
Warning: Unknown: open(/C:\PHP\sessiondata\sess_ba35b17b147613e2a480673de5 45eaae, O_RDWR) failed: Invalid argument (22) 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 (/C:\PHP\sessiondata) in Unknown on line 0
I'm in Windows XP and running a local Apache server.
On viewing the source code, I can tell that the server is parsing the php, but the variable from one page is not getting transferred to the other page as it is supposed to.
I've recently edited my php.ini file session.save_path to point to a directory I created called "sessiondata" in the main PHP directory. I have also ensured that this directory can be read from and written to by the server by enabling the "Allow network users to change my files" option.
...not sure where to go from here. Any help would be much appreciated.
|