Session Library troubled with database |
[eluser]Unknown[/eluser]
Hallo! I don't know if this is really a bug, but I hope I will help somebody with this. My job runs on LAMP with PHP 5.2.6 and MySql 5.0.51b-community-nt. Setting on application/config/config.php Code: $config['sess_use_database'] = TRUE; when I try my site i have only this: Code: A Database Error Occurred To solve this I modified the method sess_create in library Session.php Before: Code: function sess_create() After: Code: function sess_create() I don't like to modify the CI original code, but this works. Does anybody have any opinion about this? P.S.: Sorry for my english... :-(
[eluser]Wuushu[/eluser]
Or you could change the database schema to set the user_data field default value NULL
[eluser]Unknown[/eluser]
[quote author="Wuushu" date="1270299690"]Or you could change the database schema to set the user_data field default value NULL[/quote] Absolutely right! :red: But the User Guide ( http://ellislab.com/codeigniter/user-gui...sions.html ) says this: Code: CREATE TABLE IF NOT EXISTS `ci_sessions` ( |
Welcome Guest, Not a member yet? Register Sign In |