Welcome Guest, Not a member yet? Register   Sign In
Session Login/Logout
#1

[eluser]JanDoToDo[/eluser]
Hey guys,

I currently test if someone is logged by

return (bool)$this -> ci -> session -> userdata('email');

but this seems to be giving me problems sometimes. When the session expires, does it also clear all of the userdata? If not how do i make it do so? Sometimes when the session expires it takes me to the login page, but all the options are still as thgouh you are logged in and you can still get to your account

Any ideas?
#2

[eluser]bertrand[/eluser]
I'm far from experimented with CI but I'll point you to this tutorial. It should help you :

http://net.tutsplus.com/videos/screencas...y-6-login/




Theme © iAndrew 2016 - Forum software by © MyBB