Posts: 4
Threads: 1
Joined: Jun 2019
Reputation:
0
Hi, I have a site developed using CodeIgniter and I recently moved everything to a new server. But I am having some problems in the new server. After logging in with user (admin) I get redirected to login form.
PHP settings seems to be OK.
session.gc_maxlifetime = 1440
session.cache_expire = 180
session.cookie_lifetime = 0
Posts: 3,243
Threads: 69
Joined: Oct 2014
Reputation:
132
And what are your CodeIgniter config values set to?
Is the session file or database?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Posts: 4
Threads: 1
Joined: Jun 2019
Reputation:
0
Solved setting session driver to database.
Thanks.
Posts: 3,243
Threads: 69
Joined: Oct 2014
Reputation:
132
If you put it on a new sever then you need to change the base url in the ./application/config/config.php file.
See it to your new server url.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Posts: 4
Threads: 1
Joined: Jun 2019
Reputation:
0
That was already done.
However, after setting session driver to database site is slower.
Posts: 3,243
Threads: 69
Joined: Oct 2014
Reputation:
132
you can try setting the cookie_path to .your_domain.com
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )