Welcome Guest, Not a member yet? Register   Sign In
Sessions, the Database, and Remember Me
#1

[eluser]AgentPhoenix[/eluser]
I've been developing an application on CI for a few months now and I'm just turning my attention to authentication and I have a few questions to pose to everyone.

First, I'm storing session information in the database, which works fine. The only issue that I'm worried about is the fact that this application will be able to be installed on the same server across multiple sub-domains. Each instance will have its own database. So the question is, if I'm a user on site A with an access role of Administrator and I'm also a user on sit B with an access role of Standard User, how does CI's session class work for differentiate between the two sites (if it does at all)? So, if I login to site A, then login to site B, how do I prevent myself from having full admin rights on site B when I should just have standard rights?

Second question is how would I tackle doing a remember me feature given the above situation?

Any help you guys can offer would be awesome. Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB