Results 1 to 3 of 3

Thread: [2005] Handling Login's???

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    [2005] Handling Login's???

    Hi Peeps,

    I have a dynamic website and I have included on my master page login details which consists of a username, password and login button. Basically depending on who logs in I want to show or hide certain buttons on the master page. For instance if a user has admin rights in the database I want to show a Synchronise button which basically will check for any updates that have been uploaded from a desktop application I have wrote. I know how to check the user details when clicking on the login button but my problem is if they click on any other button it will reload the master and content page and have recolection that the user has logged and which will then cause the sync button to be invisible.

    Hope it makes sense; I have never done this web based and I am still learning ASP.Net so any help will be much appreciated.

    Thanks in advance for any help,

    Jiggy!

  2. #2
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: [2005] Handling Login's???

    I am not sure if you're using the same masterpage for both the login page and also the home page (after successful login). Generally that's not the case. You have a different master page after a login-in for the sake of simplicity at least. Also, once the user has logged in I would do the FormsAuthentication.SetAuthCookie and then go on with the Home page to carry out all the validations. Also, on the home page put a LoginStatus control that will fire a logged out event where you can do all the clean up. Otherwise the program flow will continue as is.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: [2005] Handling Login's???

    OK thanks mate very much; I will give it a go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width