benracer wrote:NogDog is correct as ever 😃 - another pointer is that anybody could create a script that stores a session called anybodys username, therefore could grant access to their "area". A way to get round this could be to encrypt the username. Not sure if this helps or not but any way...
Not exactly. The session cookie only stores a pseudo-random ID that is associated with the session data file on the server; it does not store any actual user data. It is a reasonably large string, so it's not conducive to casual hacking, though a brute force attack could eventually break in by trying a sequence of session IDs.
You can help limit such attacks by storing the user's IP in the session data, and if the current IP does not match it then make the user log in again.
PS: On re-reading, perhaps I misunderstood what you were referring to?