Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Creating an edit page in dreameaver (https://www.askmehelpdesk.com/showthread.php?t=10010)

  • Jun 2, 2005, 07:15 PM
    sssaudddahmed
    Creating an edit page in dreameaver
    HI,

    I am having problems with creating a members edit details page for my webiste.

    I want a user, that is not logged in, to be denied access to this edit details page.

    If a member is logged on then I want the edit details page to laod, but with that specific members detail only.

    I have already created a loggin session for the webiste but I don't know how to modify it, to allow logged in members from editing their detials only.

    I am using ASP.NET, Dreamweaver MX/2004, IIS, IE5

    Can you please instruct me on how this is done.

    Thanks
  • Jun 6, 2005, 05:05 AM
    LTheobald
    Not touched ASP for a while so there's no proper syntax (just my made up, non ASP code) but if you created a session, you might know how to set things in it already. Hopefully this will just give you an idea on what to do. I'll try and post some syntax some other time.

    Basically you'll need something on your login page that sets a variable in the session containing the username. E.g. Session[LoggedInAs] = UserName.

    Then when they are accessing the edit details page, the first thing the page should do is check the session for a logged in user...

    if Session[LoggedInAs] is not equal to blank, then
    print edit details page
    else
    print error message

    Remember to have a logout page, session cleardown etc. so that the session is cleared after it's use.


    I'll get some syntax for you later.

  • All times are GMT -7. The time now is 02:50 PM.