CodeIgniter Forums
Session based error on windows server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Session based error on windows server (/showthread.php?tid=65632)



Session based error on windows server - balakrishna - 07-04-2016

Hi,

I have a codeigniter application which is working fine on linux server but when i hosted it on windows server geting some sessions related error pls help me out..............


RE: Session based error on windows server - arma7x - 07-04-2016

The error says, the save path is not writa ble, or to solve this change your session save path in config file(read docs). In windows folder under system installation drive(windows, program files n etc) is not writable if you does not have admin permission.


RE: Session based error on windows server - balakrishna - 07-04-2016

(07-04-2016, 06:37 AM)arma7x Wrote: The error says, the save path is not writa ble, or to solve this change your session save path in config file(read docs). In windows folder under system installation drive(windows, program files n etc) is not writable if you does not have admin permission.

As it is hosted in godaddy windows server....can u say me in detail where shall i need to update in config file...and what will be the complete path for that....can uĀ give me some example pls...


RE: Session based error on windows server - balakrishna - 07-04-2016

(07-04-2016, 06:37 AM)arma7x Wrote: The error says, the save path is not writa ble, or to solve this change your session save path in config file(read docs). In windows folder under system installation drive(windows, program files n etc) is not writable if you does not have admin permission.

this is what i get error after i create some folders cache and sessions under system folder....

Message: Session: Configured save path 'G:/PleskVhosts/canopusgbs.in/emp.canopusgbs.in/system/cache/sessions' is not writable by the PHP process.


RE: Session based error on windows server - arma7x - 07-04-2016

(07-04-2016, 06:58 AM)balakrishna Wrote:
(07-04-2016, 06:37 AM)arma7x Wrote: The error says, the save path is not writa ble, or to solve this change your session save path in config file(read docs). In windows folder under system installation drive(windows, program files n etc) is not writable if you does not have admin permission.

this is what i get error after i create some folders cache and sessions under system folder....

Message: Session: Configured save path 'G:/PleskVhosts/canopusgbs.in/emp.canopusgbs.in/system/cache/sessions' is not writable by the PHP process.

My suggestion you create new folder for storing session files in application folder and set $config['sess_save_path'] = APPPATH.'newfoldername'; in config.php