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.

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

issues verifying if user is logged in
I am having issues when a user logs in via asp Login control, the IsAuthenticated still seems to com

Re-Order by ID Number
I have a cms set up for inputting an image, thumb, title, pdf, and eps. When input the database ass

Time-based image rotation script
I'm trying to write a PHP script that rotates an image based on what time of day it is. I want the

What makes a script your own?
If someone finds a login script online, and changes some variable names around and some other minor

Loops and Classes
I am making a template system and everything seems to be going well up until I have to loop in a var

if description does not contain the following words
Hello everyone,

I am parsing a MS Excel (.xls) file and adding it's content to a mySQL databa

Newb advice
Hi all,

I'm a flash front end designer and I've taken on a project that needs some back end p

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

How to have a log of all the status a VIM document had been ?
Hi guys,

I’m using SAP Invoice Management plugin and the /OPT/VIM_ANALYTICS transa

Calling a Procedure with IN & OUT Parameters
Hello,

I usually call my procedures using the following way

declare variable e

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