Changing line 404 of login.php from
$return_path = BASE.AMP.'C=homepage';
to
$s = ($this->config->item('admin_session_type') != 'c') ? $this->session->userdata('session_id') : 0;
$return_path = SELF.'?S='.$s.'&D=cp'.AMP.'C=homepage';
“fixes” the problem.
The BASE constant gets defined before the authentication function gets called so it gives a URL with a session id of 0. The homepage controller sees a 0 session id and redirects back to the login page.
Can anyone confirm that they have the same issue? I’m using Freelancer v2.1.1 You’ll need to switch to Session ID only in the CP, make sure you’re not setting it in the config.php file, logout and clear your cookies and then try and log in.
Edit: I wonder if this issue has been around for a while, but all the other threads say “just change to cookies” so it hasn’t been an issue?