Welcome Guest, Not a member yet? Register   Sign In
Basic user class
#2

[eluser]TheFuzzy0ne[/eluser]
Are you sure you can keep a session in memory (or are you referring to MemCache or APC?)? I've never heard of this before. Normally it's stored on the server's hard drive (and only put into RAM when the user maes a request to the server), and it's referenced either from a cookie, or via an argument in the URL.

I doubt you'll find a library like you're after, since permissions are totally different to sessions. I would suggest using the sessions library, and set the users permissions when they login. You can go the extra mile if you want and check their permissions upon each request, in case you have changed their permissions while they were logged in, but it's up to you whether or not you need to implement this.


Messages In This Thread
Basic user class - by El Forum - 03-06-2013, 07:33 PM
Basic user class - by El Forum - 03-07-2013, 02:53 AM
Basic user class - by El Forum - 03-07-2013, 01:34 PM
Basic user class - by El Forum - 03-07-2013, 02:00 PM
Basic user class - by El Forum - 03-07-2013, 05:17 PM
Basic user class - by El Forum - 03-07-2013, 07:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB