Session does not work on live server in Codeigniter
Sometime we face a problem with session while moving site from localhost to the live server.
So if you get error message something like that:
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 117
SOLUTION:
Just add below code to your config.php, This would be really helpful to you.
$config['sess_save_path'] = sys_get_temp_dir();
Comments
Post a Comment