CodeIgniter Forums
user data not saved in session after login - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: user data not saved in session after login (/thread-827.html)



user data not saved in session after login - umefarooq - 01-20-2015

i am facing a problem with my user registration and login script, register user working fine, after activation of user when try to login first time, providing proper username and password it redirects back to login page not going to user panel, if i login again it work fine, very first time user login not saving user data in session, i have debugged i can see user data in session before redirect to user panel but after redirecting nothing in it.


RE: user data not saved in session after login - Avenirer - 01-21-2015

How would you like us to help you if you don't show us any code?


RE: user data not saved in session after login - sv3tli0 - 01-21-2015

1st of all access to login page must have only guests.
2nd on login you can set clear user session data so if there is anything kept which may bug your login process to clear it..
3rd - without code we can't just guess what is your problem Smile