[eluser]Sinclair[/eluser]
Another question about the Session Class with Database.
I'm using PostgreSQL as database, and I have created the "ci_sessions" table, muck like the table in the documentation:
Code:
CREATE TABLE IF NOT EXISTS `ci_sessions` (
session_id varchar(40) DEFAULT '0' NOT NULL,
ip_address varchar(16) DEFAULT '0' NOT NULL,
user_agent varchar(50) NOT NULL,
last_activity int(10) unsigned DEFAULT 0 NOT NULL,
user_data text NOT NULL,
PRIMARY KEY (session_id)
);
If I put the field USER_DATA as NOT NULL, does not work, If I change it to NULL, it works and saves user_data info in the field. This is a bug with PostgreSQL or the information in the documentation is wrong about the NOT NULL user_data field?
Best Regards,