PHP & MySQL User login and permissions system?

I would suggest you the logic as follows: if a user has "a" in one of his columns, then you treat him differently. That means that still one only row is coming up for every user. One only session.

Same data strusture. Same session. But basing on what is the value of, say, column "permissions" you open him more "doors" in your application.

Where everything you gonna have to do is to check if the "permission" of his session is set to "a" or whatever identifies him as admin.

First of all, you are using deprecated session_register,session_is_registered. Php manual recommends using $_SESSION. Session_is_registered expects string, but you don't pass string - it should be something like session_is_registered("admin"), not session_is_registered(admin).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions