Welcome Guest, Not a member yet? Register   Sign In
User Authentication - Placement of code?

I don't mind sessions loading on every person that visits the site but I'm more concerned with tracking the users who log in. However to do that I have to somehow get the information to insert into the database, which it's not doing currently. I've even tried using one of the custom session classes that are available but even those didn't work correctly (though that was probably an error on my part). Either way, I hope sessions are worked on for CI 1.6.

[eluser]Henrik Pejer[/eluser]
Just a little tip: check out hooks.

This way you can make sure that before any of your controllers get 'triggered', a check is performed if they are logged in or not.

Make a search for it here on the forums: I'll bet there are good guides here in the forums.

Good luck!

Theme © iAndrew 2016 - Forum software by © MyBB