|
Subject:
|
Restict Access To Page (yet it denies it all!)
|
|
Posted By:
|
DanDan
|
Post Date:
|
12/8/2004 3:12:53 PM
|
I am currently having trouble with Dreamweaver MX 2004 authenticating users.
I have a page called login.php where the user can login, which works fine and seems to get the details from the database and then allow the user to log in, but when you attempt to load a page with access restrictions on, it doesn't let you visit that page, and sends you back to the login.php page (what it's supposed to do if you are not logged in)
If I point the login.php to an unrestricted page it goes to that page fine and doesn't fail with the log in, which is why I'm assuming logging in works.
I have tried allowing just username and password without the additional permission levels, but still no joy.
I am developing and testing entirely locally, on a single machine with all my servers and databases on.
Can anyone suggest anything or does anyone know what is causing the problem and how to fix it?
Cheers
|
|
Reply By:
|
Imar
|
Reply Date:
|
12/11/2004 6:03:30 AM
|
Could this be a Session issue?
I am not tot sure about the PHP implementation, but logging in with ASP works with Sessions. So, when a user is logged in, a Session variable is set. When you visit a protected page, the session variable is checked. When it exists, you can view the page, otherwise you're redirected to the login page.
So, the login page might be broken. It could be possible that it doesn't set a session variable, or that the variable is lost when you're redirected to a protected (or unprotected) page.
Can you work with sessions at all in your application?
Cheers,
Imar --------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|