Welcome Guest, Not a member yet? Register   Sign In
Community Auth Issue
#5

Hi skunkbad,

Thank you for the time. I tried your suggestion but no luck. Still the `sess_regenerate()` function doesn't return the session id. Maybe because if `CI_Session` is loaded first than the `MY_Session` in Community Auth. I can see the `sess_regenerate()` function on `MY_Session` in Community Auth returned the Session ID but the `sess_regenerate()` function on `CI_Session` does not.

Now, if I install the library that has an auto-load of session, the `sess_regenerate()` function will returned null because that function is coming from the loaded `CI_Session`, not from `MY_Session`. The solution I can see now is changing the code in `Authentication.php` from 
Code:
$session_id = $this->CI->session->sess_regenerate( config_item('sess_regenerate_destroy') );

to
Code:
$session_id = $this->CI->session->session_id;

I don't know if this is the better approach but I can see this is the only way to make this plugin compatible with another library that has an auto-loaded session.

Do you think we can consider this as a list of concerned or fixes in the next version?

Thank you very much and I still open for any suggestion of what is the better approach than my solution above.

Regards,
Jay-r
-jaystream
Reply


Messages In This Thread
Community Auth Issue - by jaystream - 08-27-2017, 03:40 AM
RE: Community Auth Issue - by skunkbad - 08-27-2017, 03:10 PM
RE: Community Auth Issue - by jaystream - 08-28-2017, 04:44 PM
RE: Community Auth Issue - by skunkbad - 08-28-2017, 11:36 PM
RE: Community Auth Issue - by jaystream - 08-30-2017, 08:36 AM
RE: Community Auth Issue - by skunkbad - 08-30-2017, 05:19 PM
RE: Community Auth Issue - by jaystream - 08-31-2017, 01:42 AM
RE: Community Auth Issue - by sasbass - 08-31-2017, 02:24 AM
RE: Community Auth Issue - by jaystream - 08-31-2017, 02:50 AM
RE: Community Auth Issue - by skunkbad - 08-31-2017, 11:02 AM
RE: Community Auth Issue - by jaystream - 08-31-2017, 05:21 PM
RE: Community Auth Issue - by dave friend - 09-05-2017, 02:26 PM
RE: Community Auth Issue - by jaystream - 09-05-2017, 05:43 PM
RE: Community Auth Issue - by bocahapi - 12-05-2017, 04:06 PM
RE: Community Auth Issue - by skunkbad - 12-05-2017, 06:12 PM
RE: Community Auth Issue - by bocahapi - 12-09-2017, 05:39 PM
RE: Community Auth Issue - by skunkbad - 12-09-2017, 09:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB