Users and Groups with PHP Classes


Posted on 16th Feb 2014 07:03 pm by admin

Hi,

I have setup what I hope to be a good working User class. Now I want to introduce group membership and group permissions. Before doing so, I have a couple of questions.

Did you know?Explore Trending and Topic pages for more stories like this.
Firstly, because users and groups have a relationship would you say that a user inherits a group and therefore group code should be in the User class ? vice versa ? or is it commonly implemented differently ?

Secondly, and I am fairly sure I know the answer to this, but I'm guessing that groupID membership shouldn't be stored in the session right ? for security reasons ?

Thanks
No comments posted yet

Your Answer:

Login to answer
187 Like 7 Dislike
Previous forums Next forums
Other forums

captcha error
I have been trying to implement a captcha in php...

here is the code..
Code: (php) [Select

WORDPRESS - Multiple Loops Only Going to One Post?
I have various pages with multiple loops and i need them to be individual to all other categories.

am I using this for loop correctly
Dear buddies!

Right now I am generating a report with some details for all the dealers.

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

Does deleting the spmlog directory critical?
Hi Everyone,

Please, hope you could help me. We're having problems with the SAP backup. I

Menu restriction
How can I restrict the individual menu that would appear when a user logs in so that all users are c

quick basic question, hopefully not dumb
I don't know how to search for this, so forgive me if it's been covered...

I often see an exa

quick question about System Change Number(SCN) in FlashBack Query topic
i know tht we can get the SCN of the database using flashback concept as follows

SQL>

an interesting question
Greetings folks, got to ask an interesting question...

let say
i have created a function s

How to file_get_contents when login required?
Hello!

I am trying to read data from a page that you have to be logged into to view, I am try

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash