skip to Main Content

First of all, sorry i will try my best to explain you the problem because i am not an english poeple.
So, last week i installed apache, php and zend, and all was working perfectly, but today when i tried to lunch the server i got a problem. I am just starting with Zend and for me it’s the nothingness. Could you please help me to correct this.

This is the problem :

Fatal error: Uncaught exception 'Zend_Session_Exception' with message ' 
Zend_Session::start() - D:ZendZendFramework- 
1.11.10libraryZendSession.php(Line:469): Error #2 session_start() [<a 
href='function.session-start'>function.session-start</a>]: 
open(C:Windowssess_9q7bhlv36pc8o7vhngpptmmca7, O_RDWR) failed: Permission 
denied (13) Array D:ZendZendFramework- 
1.11.10libraryZendSession.php(Line:479): Error #2 session_write_close() 
[<a href='function.session-write-close'>function.session-write-close</a>]: 
open(C:Windowssess_9q7bhlv36pc8o7vhngpptmmca7, O_RDWR) failed: Permission 
denied (13) Array D:ZendZendFramework- 
1.11.10libraryZendSession.php(Line:479): Error #2 session_write_close() 
[<a href='function.session-write-close'>function.session-write-close</a>]: 
Failed to write session data (files). Please verify that the current setting 
of session.save_path is correct () Array' in D:ZendZendFramework- 
1.11.10libraryZendSession.php:482 Stack trace: #0 D:ZendZendFramework- 
1.11.10libraryZendSessionNamesp in D:ZendZendFramework- 
1.11.10libraryZendSession.php on line 482

2

Answers


  1. Chosen as BEST ANSWER

    After a lot of research i found the problem. Windows couldnt creat the "sess_9.." folder so i put this line in application.ini.

    resources.session.save_path = APPLICATION_PATH "/../data/session"
    

    And now it's working perfectly !

    Thanks for yours advices


  2. First Create folder “tmp” on your root directory with permission 777 then before start_session, Add below code in your Framework Loading Page Public / index.php Or in general you can set it in your apache server too.

    ini_set('session.save_path', 'tmp');
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search