Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2004, 04:12 PM
Authorized User
 
Join Date: Nov 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Restict Access To Page (yet it denies it all!)

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
 
Old December 11th, 2004, 07:03 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access: Data Access Page sevp95 Access VBA 0 July 14th, 2008 11:07 AM
how to restict to offline access to VSS priyan.viji .NET Framework 2.0 1 June 25th, 2008 09:53 AM
access C#.Net page as action of calssic ASP page mansharma_s ASP.NET 1.x and 2.0 Application Design 6 January 7th, 2008 10:58 AM
Access Master page control from Content page. angshujit ASP.NET 2.0 Basics 3 January 11th, 2007 06:20 AM
Data access page access problem :) kev_79 Access 0 September 4th, 2003 04:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.