$_SESSIONs
Posted: Wed Apr 06, 2005 8:04 pm
I have a small membership area, you need to login to get access. You also must be verified by a admin inorder to get complete access to the member tools. Now my script works alittle bit. My table looks like this
When field "" is set to ? by an admin you can access all areas of the membership area. When its set to 0 (default) you can only see the membership home page. With field "" is set to ? you can access admin options such as unlock accounts. My problem is that the sessions are losing their value or something because when i am going to different areas of my membership area, sometimes i get sent to membership home (basicly not verfied account). On each of my pages it checks that you are verifed, and if you are a mod it displays mod options. You can try it, my login page
This is verified and has mod rights, so if you start clicking and going to differnet areas you will get send to ffhome.php (membership home).
How should i solve this problem? Query the database for the "status" and "mod" values each page?
When field "" is set to ? by an admin you can access all areas of the membership area. When its set to 0 (default) you can only see the membership home page. With field "" is set to ? you can access admin options such as unlock accounts. My problem is that the sessions are losing their value or something because when i am going to different areas of my membership area, sometimes i get sent to membership home (basicly not verfied account). On each of my pages it checks that you are verifed, and if you are a mod it displays mod options. You can try it, my login page
This is verified and has mod rights, so if you start clicking and going to differnet areas you will get send to ffhome.php (membership home).
How should i solve this problem? Query the database for the "status" and "mod" values each page?