Error codeigniter generates multiple sessions for the same user |
(12-12-2018, 02:25 PM)xaiborweb Wrote: hello thank you for answering, it is not the problem because I have this problem for a long time and tested with all versions of codeigniter 3.x this has just become and I have all the same problem.[/url] That being the case then the problem is probably not with the framework but with how it is being used. Please show us your code. (12-12-2018, 09:47 PM)dave friend Wrote:(12-12-2018, 02:25 PM)xaiborweb Wrote: hello thank you for answering, it is not the problem because I have this problem for a long time and tested with all versions of codeigniter 3.x this has just become and I have all the same problem.[/url] /application/config/config.php PHP Code: $config['sess_driver'] = 'database'; PHP Code: $autoload['libraries'] = array('ion_auth'); https://drive.google.com/file/d/1OPSPk82...IeWPV/view /application/libraries/Ion_auth.php https://drive.google.com/file/d/1SeA1QIa...bEym7/view /application/controllers/Auth.php https://drive.google.com/file/d/1RxNX73O...KSpJL/view /application/models/Ion_auth_model.php https://drive.google.com/file/d/14XD6eGb...SVDK-/view to summarize the only thing I need is a simple user registration and login system, and it seemed simple to implement Ion Auth, but if you know another login system for codeigniter that maybe I do not have these problems that I am presenting with the sessions. I would appreciate it also. Thank you for your help for sure it will serve many as I see that codeigniter gives many problems with session.
The Ion Auth code is well known and widely used. It does not, by itself, produce the problem you describe.
I'm curious about hybridauthlib. (Please don't provide links to code, put it in the post instead.) How does the "Auth" controller get called? What does the "Home" controller look like? (12-13-2018, 08:11 AM)dave friend Wrote: The Ion Auth code is well known and widely used. It does not, by itself, produce the problem you describe.hello, I put the links to the code because the code was so extensive that it would not let me publish the forum. I use hybridauthlib to start a session with social networks. I leave code. but I insist if my localhost worked fine, I think the problem could be because the server is in Canada and the traffic is of different time zones, or because the cookie expires very fast or something like that I think, just that I am novice in the subject /application/config/hybridauthlib.php https://drive.google.com/file/d/1H6i6UBF...P1HV0/view the original driver changes it to be compatible with Ion Auth and is in this function: /application/controllers/Auth.php PHP Code: public function auth($provider) /application/libraries/HybridAuthLib.php https://drive.google.com/file/d/1B1u8Oj4...p5dgg/view thanks for your help |
Welcome Guest, Not a member yet? Register Sign In |