Welcome Guest, Not a member yet? Register   Sign In
Logout and flashdata
#11

[eluser]victorche[/eluser]
@WanWizard, sorry but in my /application/models/ion_auth_model.php there is no method logout()
I have such a thing in the library, but not in the model Sad
#12

[eluser]Bainzy[/eluser]
dont forget though you will need to add in the code to destroy the session, so this is maybe what you should put in, this needs to go in the ion_auth.php library file around line 395 :

Code:
// Remove the following
$this->session->sess_destroy();

// Replace with something like

$this->session->unset_userdata($identity);

This way you are only destroying the data set by ion_auth and not any extra userdata or flashdata you may have set Smile
#13

[eluser]Bainzy[/eluser]
woops ... just took another look at the logout function and it already unsets this variable ... totally dint read WanWizards response correctly so yeah as Wizard says just change $this->session->sess_destroy(); to //$this->session->sess_destroy();
#14

[eluser]WanWizard[/eluser]
Check! Smile
#15

[eluser]Bainzy[/eluser]
sorry about that wizard ... was in one of them skim over words mood ... and for some reason i did not think of this solution all the way through Smile




Theme © iAndrew 2016 - Forum software by © MyBB