PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey i guys I got this error and i dont know how to fix it. My friend told me that the php.ini not configured properly..I hope someone could provide step by step guide to fix this problem
Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/2e\sess_bf546a6a14333c84c47344b1d2026592, O_RDWR) failed: No such file or directory (2) in C:\AppServ\www\admin\index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\AppServ\www\admin\index.php:2) in C:\AppServ\www\admin\index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\admin\index.php:2) in C:\AppServ\www\admin\index.php on line 2
Warning: Unknown: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/2e\sess_bf546a6a14333c84c47344b1d2026592, 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 (C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/2e) in Unknown on line 0
am I on the wrong forum? if yes please give me a link
The location of the session files on your computer is not writable for whatever reason. You can control the location via the session.save_path parameter in your php.ini configuration file
pytrin wrote:The location of the session files on your computer is not writable for whatever reason. You can control the location via the session.save_path parameter in your php.ini configuration file
Thank you for your concern. To be honest Im a newbie in php. Is there any step by step tutorial to fix this? I really appriciate if someone could help me with this. Thank you in advance.
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
; [b]session.save_path = "N;/path"/// to session.save_path = "N;/writable"[/b]
;
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
; [b]session.save_path = "N;MODE;/path" ///to session.save_path = "N;MODE;/writable"[/b]
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
;session.save_path = "/tmp"
Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/23\sess_89d0207366a5da89ad707bb749a82976, O_RDWR) failed: No such file or directory (2) in C:\AppServ\www\admin\enter\index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\admin\enter\index.php:2) in C:\AppServ\www\admin\enter\index.php on line 2
Warning: Unknown: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/23\sess_89d0207366a5da89ad707bb749a82976, 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 (C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/23) in Unknown on line 0