php - OAuth issues with Codeigniter/i18n URLsGet the solution ↓↓↓
Based on your comments and post, I'm guessing you are trying to use the same method twice in a row, so you get logged in. Seems weird but whatever.
The i18n you use will however change your routes to encorporate the languages so you should update your url's which you are setting inside your to controller to also use that language or a language.
In codeigniter, you should always try to set url's by the use of
site_url(). This way you can easily port your application to other domainnames/locations. In this case, the localisation-library would also have changed the url's for you.
You should change all references to urls as follows:
$config['base_url'] = site_url("linklogin/initiate/"); $config['callback_url'] = site_url("linklogin/get_resume_linkedin/");
site_url(), you will need the URL Helper. You should include that helper before trying to use site_url(). But you already include it in your constructor, so no problems there.
You should also replace the use of
header(...); exit; with
redirect();. If you die after sending the header, codeigniter will not fully run and your logs will not be fully completed.
redirect($config['callback_url']); // Replaces: header($config['callback_url']);exit; redirect('linklogin/get_resume_linkedin/'); // Alternative to above statement
I would also advice you to check out the manual to check out the build-in session class and the input class.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: git was not found in your path, skipping source download
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.