none
Using password protected pages in Expression Web 4 to direct users. RRS feed

  • Question

  • Good Day

    I have setup a password protected section in the EW site I am building using the following article:

    https://support.microsoft.com/am-et/help/928706/how-to-create-a-web-page-that-is-protected-by-password-by-using-expres

    The user name and password login works perfectly. HOWEVER this site is for an IT Support Company and the customer would like to use the Protected section to enable his customers to access their own unique Help desk and Web Mail pages.

    Eg. When user1 from company ABC logs in and clicks on the help desk button it takes him to ABC's Help desk. when user2 from company XYZ logs in and clicks on the help desk button it takes him to XYZ's Help desk.

    What would be the best way to code this logic, as the customer's database is obviously going to grow over time with new users being added as his client base grows.

    Any help in this regard would be appreciated.

    Thanks

    Wednesday, November 6, 2019 9:30 AM

Answers

  • See my first response.  Based on the users credentials, redirect to the correct page, not to the Referrer.  The easiest way is to name the page based on something unique to the user (append a user ID, for example), and be sure to check the current user's credentials on their individual pages so that another user can't get there by guessing the page's name.  Alternatively, you'd have to list all the page names and do a Case or If statement to get the right page name, or store the page names with the User's ID in a database table and do a lookup to find the page to be referred to.

    Kathleen Wilber
    BrightWillow - Asp.Net Applications



    • Edited by KathyW2 Wednesday, November 13, 2019 5:59 AM
    • Marked as answer by Nardus Schroeder Thursday, November 14, 2019 3:04 PM
    Wednesday, November 13, 2019 5:56 AM

All replies

  • What do you mean by "their own unique" pages?  Are you going to create a new page for each user?  If that is the case, you need to have a general page to login (help desk, mail, etc.) and check the UID and response redirect to that user's page, not to the Referrer.  Or do you mean the same page, but with each user's unique data on it?  If so, you must already have the user's contents in a database and simply check the UID and use it as a query parameter before populating the page.


    Kathleen Wilber
    BrightWillow - Asp.Net Applications


    • Edited by KathyW2 Saturday, November 9, 2019 6:05 AM
    Saturday, November 9, 2019 5:53 AM
  • Hi Kathleen

    Same login page for all users. In other words a general login page. Based on the user's credentials they need to be redirected to their specific page that has been setup for them.

    Tuesday, November 12, 2019 7:19 AM
  • See my first response.  Based on the users credentials, redirect to the correct page, not to the Referrer.  The easiest way is to name the page based on something unique to the user (append a user ID, for example), and be sure to check the current user's credentials on their individual pages so that another user can't get there by guessing the page's name.  Alternatively, you'd have to list all the page names and do a Case or If statement to get the right page name, or store the page names with the User's ID in a database table and do a lookup to find the page to be referred to.

    Kathleen Wilber
    BrightWillow - Asp.Net Applications



    • Edited by KathyW2 Wednesday, November 13, 2019 5:59 AM
    • Marked as answer by Nardus Schroeder Thursday, November 14, 2019 3:04 PM
    Wednesday, November 13, 2019 5:56 AM