close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Give client another pw to veiw special page

Thread began 3/31/2010 6:53 pm by rbouie336810 | Last modified 4/05/2010 6:28 pm by Eric Mittman | 735 views | 3 replies |

rbouie336810

Give client another pw to veiw special page

Hello!
I have finished user reg pack and siteassist to build my web site and everything is working fine. How would be able to give a client another password to view a special page that pertains to him only? For example: after doing a photo shoot i want to upload samples so only that client or family can view the photos with the password. I have most of your extensions . . .

Thank in advance
Ron

Sign in to reply to this post

Eric Mittman

You would not do this with a new password. Instead you would need to create a new access rule specific for the user.

When the user logs in their id should be held in a session variable. You can make a rule specific to a user that checks on the userid to ensure that the correct user is logged in. Any page that has the rule applied to it would restrict access to the one user.

To make it work like this you would need to lookup the user in the db to see their id, then craft a new rule that says if userID is equal to the id, then set the page up for that user and apply the rule to it. Post back if you have any questions or need any more specific info on this.

Sign in to reply to this post

rbouie336810

Give client another pw to veiw special page

Thanks Eric, it all makes sense now. I thank I use security to do this, However I have viewed the pdf file on authentication and it i can isolate what i need to do to get started. Can you give me some basic steps, to get started.
Thanks again
Ron

Sign in to reply to this post

Eric Mittman

You should ensure that you have a column in your users table that will indicate if the user has the special access. This is a column that you should manually control yourself.

You should then start out by using the Security Assist wizard to create a user registration experience. This will create the pages for registering and logging in. You should default the special access column to the regular value, then update it manually for the user's that have special access.

Once you have this worked out you should ensure that you are storing the value from this new column on login. You do this by editing the authenticate user server behavior and adding a new session variable, then basing it off of the new special access column you added. When a user with this special access logs in they will have the session variable that holds this value.

The last part is to define your access rule based on the session variable. You will check it for the correct value. If a user meets the rules requirements then they will have access to any page that has the access rule on it. If the user logs in and does not have the correct value stored in the special access session variable they will not pass the rule and have access to the page. Please post back with any specific questions that you have about any part of this and I will help explain or help you figure out what is next.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...