Welcome Guest, Not a member yet? Register   Sign In
Session
#1

[eluser]JohnS901[/eluser]
Hello

I'm not really sure how this work. I throw the table

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)
);

In to my database and set'$config['sess_use_database']' to TRUE.

What should I do next?
#2

[eluser]WanWizard[/eluser]
Remove the underscore from the session cookie name, and set the cookie domain and cookie path to match your site (do not use localhost, some browsers refuse that).

Then (auto) load the session library and you're off...
#3

[eluser]JohnS901[/eluser]
I mean that Im not really sure what they do. Thanks for reply tho! Why would I remove the underscore?
#4

[eluser]WanWizard[/eluser]
Because some versions of IE are allergic to it...

What do you mean with 'not sure what they do'? Sessions, you mean?
#5

[eluser]JohnS901[/eluser]
No, well they already set sessions in CodeIgniter.




Theme © iAndrew 2016 - Forum software by © MyBB