Skip to main content

session_start(): Failed to initialize storage module: user (path: )

Error:
session_start(): Failed to initialize storage module: user (path: )

Solution:
When this error is given for the Codeigniter project you are running, that is specifically for not having a path recognised to store session data.

Set config data as follows [file: your-project-folder/application/config/config.php] :

$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = APPPATH.'cache/';
$config['sess_match_ip'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

Comments

  1. Well written! You have covered many points. Please keep it up and keep us updated with the latest information. Thanks a lot!
    by cloudi5
    Web Design Company in Thoothukudi

    ReplyDelete
  2. thanx alot ya this helped me alot
    love your blog
    thesatta

    ReplyDelete
  3. This is very helpful for me
    thanx alot brother
    :)

    ReplyDelete
  4. Excellent post. I really enjoy reading and also appreciate your work. This concept is a good way to enhance knowledge. Keep sharing this kind of articles, Thank you. Maine website design company

    ReplyDelete
  5. You composed this post amazing about this topic. I got data from your article, it is precious for me and furthermore for other people. Continue sharing this sort of information.Miami web design

    ReplyDelete
  6. This information is meaningful and magnificent which you have shared here about the Web Design. I am impressed by the details that you have shared in this post and It reveals how nicely you understand this subject. I would like to thanks for sharing this article here.Website Designer San Antonio site.

    ReplyDelete
  7. Extremely useful information which you have shared here. This is a great way to enhance knowledge for us, and also helpful for us. Thankful to you for sharing an article like this. Web Design Company

    ReplyDelete
  8. It is what I was searching for is really informative. It is a significant and useful post for us. Thankful to you for sharing video like this. web hosting malaysia

    ReplyDelete
  9. Extremely useful information which you have shared here. This is a great way to enhance knowledge for us, and also helpful for us. Thankful to you for sharing an article like this. web design service for online business UK

    ReplyDelete
  10. I would like to thank you for sharing such great post about HTML5 Web Application. I got some great knowledge from this post. Keep posting. Digital Marketing Agency Australia

    ReplyDelete
  11. Excellent post. I really enjoy reading and also appreciate your work.Website Design Company near Me Ohio This concept is a good way to enhance knowledge. Keep sharing this kind of articles, Thank you.

    ReplyDelete
  12. It is what I was searching for is really informative.Web Design Company It is a significant and useful article for us. Thankful to you for sharing an article like this.

    ReplyDelete
  13. Great job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Read more info about website design dubai. Thank you because you have been willing to share information with us.

    ReplyDelete
  14. It is a proficient article that you have shared here. website design agency I got some different kind of information from your article which I will be sharing with my friends who need this info. Thankful to you for sharing an article like this.

    ReplyDelete

Post a Comment

Popular posts from this blog

Get related keys of a table

terminal->mysql SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_SCHEMA = '<database>' AND REFERENCED_TABLE_NAME = '<table>' With Column terminal->mysql SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_SCHEMA = '<database>' AND REFERENCED_TABLE_NAME = '<table>' AND REFERENCED_COLUMN_NAME = '<column>';