adam
adam

Reputation: 403

Ci using same session at different project

i have 2 web aplication using CI. the problem is every project sharing same session. i need every project to use different session.

Upvotes: 2

Views: 263

Answers (1)

complex857
complex857

Reputation: 20753

Try changing the sess_cookie_name value in your configs (by default this is in application/config/config.php).

Depending on your setup, you could be using the same store (database / redis) or with the files store the same sess_save_path in both projects. If you separate the project by session cookie's name they should not collide anymore.

Alternatively you could change the sess_save_path to an unique one for every project if you are using the files driver

Upvotes: 1

Related Questions