Quote:
Originally Posted by t0ny
Could someone please explain to me using the session table and the sessionhash cookie, how to check if someone is logged in?
Do I simply need to check if that particular sessionhash is in the table or do i need to mess with the lastactivity or anything ?
|
*bump*
I'm interested in the same thing...
I simply want to know say given a session ID, if the user is a valid logged on user.
Out of interest are old session records killed? ie: When a session hasn't been used for X amount of time I assume it's removed? What's the rules behind this?
ps: I'd also love to know if a user is also a member of a given group (ie: granting them additional features).