If you are basing the authentication on a username stored in a cookie then there is no security in doing so, all a user need to have in an administrator username, then modify the cookie and bam they have access to an admin account of your game.
How is that secure?
If you are comparing the password and username with the permissions and user data in the db tables each time then that might be reasonable, depends on how its done and how you look at it.




