Jump to content

[SOLVED] Trying to understand PHP warning?


php blanco

Recommended Posts

Hello,

I recently installed PHP and MySQL.  After setting up a local IIS/CGI web server, I created a basic php user login page.  I tested the page and the following error appeared at the bottom.  Can anyone help me understand what I need to fix?

 

login PHP Warning: Module 'mysql' already loaded in Unknown on line 0 PHP Warning: Unknown: open(C:\DOCUME~1\sysop\LOCALS~1\Temp\php\session\sess_8kgbupgee2gcpi5iu625846025, O_RDWR) failed: Permission denied (13) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\sysop\LOCALS~1\Temp\php\session) in Unknown on line 0

 

thanks,

blanco

Link to comment
https://forums.phpfreaks.com/topic/63656-solved-trying-to-understand-php-warning/
Share on other sites

your solution can be solved 2 ways:

 

1.  edit the php.ini file and change

session.use_cookies = 1

and

session.cookie_httponly = 1

 

This method is unsecure because it store session data on client machine

 

2. make a directory anywhere on your drive and set the session save path:

session.save_path = "that directory"

make sure everybody has the write permission on that directory.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.