?
Solved

DW user athorisation and restriction

Posted on 2004-08-23
3
Medium Priority
?
143 Views
Last Modified: 2010-04-25
I have an issue with an app that i wrote.

The session varibles seemed to be screwed up and the result is that my page restriction is not working.

I have added in some extra session varibles at the login but i was wondering what are the defeult session varibles that dreamweaver creates when you create a logon page? and am i right in thinking that the access level is controlled by the user name being run in a query to see the users access level at the time of the page being compiled rather then an access level session variable being created on the logon page?

Also does the logon and user authentication store any code in the hidden directory that dreamwaver does not show? IE_mmServerScripts

Willa
0
Comment
Question by:willa666
3 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 11877864
> and am i right in thinking that the access level is controlled by the user name being run in a query to see the users access level at the time of the page being compiled rather then an access level session variable being created on the logon page

when a user enters a user name and PAssword, your Query Executes. if the user name is found and the Password, Then DW will generate Apporiate Session Variables to hold your User name throughout the Site.

 > Also does the logon and user authentication store any code in the hidden directory that dreamwaver does not show?

as far as I know All the Sessions Variables are stored as Cookies and DW wont put them in any kind of secure directory.

what Exactaly are you trying to do or having problems with. Post some code if confused.
0
 
LVL 1

Author Comment

by:willa666
ID: 11879197
Their are no cookies created DW, they are session variables surely.

the problem i am getting is that when i log and then try to view a page that has restrictions applied i get denied the page. even when i put the privilage to allow all levels (1,2,3,4,5), that is why i want to know what the session varible are called that DW creates.

I did get this problem before when i was a litle wet behind the ears and found out that my field size was 2 rather then 1. But this is not the problem this time.

Their must be another file that holds the accesslevels as when you go to a fresh page and add page restrictions to it the access levels are allready their! so DW must be drawing them from a file somewhere.

0
 
LVL 9

Accepted Solution

by:
prifre earned 2000 total points
ID: 12037484

"By default Macromedia’s Dreamweaver MX creates 2 Sessions when you login, first the Username, from the form, called MM_Username, 2nd if you select to use Authentication levels, it will create one call MM_UserAuthorization from a column in your database.

You can create as many Sessions as you wish from the login behaviour, as long as the details are included in your user table or are defined in the page."

Taken from the tutorial: http://www.cgw3.co.uk/tutorials/tutorial.asp?TutorialID=37&CategoryID=3

hope that helps.

with a smile
/prifre
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question