Welcome Guest, Not a member yet? Register   Sign In
session data lost after redirect in CI 3
#8

Your Database Session Table is wrong, your using the CodeIgniter 2.x Session Table.

This is the CodeIgniter 3.x Session Table:

PHP Code:
CREATE TABLE IF NOT EXISTS `ci_sessions` (
 
       `idvarchar(128NOT NULL,
 
       `ip_addressvarchar(45NOT NULL,
 
       `timestampint(10unsigned DEFAULT 0 NOT NULL,
 
       `datablob NOT NULL,
 
       KEY `ci_sessions_timestamp` (`timestamp`)
); 

See your id field size...
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: session data lost after redirect in CI 3 - by InsiteFX - 12-23-2017, 04:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB