FormsAuthentication using xml file

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Re: FormsAuthentication using xml file

    Hi Andrea,

    Thanx for the link to the article ...It was really useful...but again i
    have a question which remains unanswered...Please can u help me with that..
    If my user is authenticated the
    FormsAuthentication.RedirectFromLoginPage() takes me to default.aspx...but
    what i want is if the user who is authenticated is an administrator he shud
    be directed to a page called AdminOptions.aspx but if the user who is
    authenticated is not an administrator then he shud be directed to some other
    page ...say XYZ.aspx....I cannot have two Default.aspx pages...Then how can
    i specify these page redirections..instead of using only Default.aspx.

    Any advice wud be helpful..
    Thanx:-)
    regards,
    smita.


    smita Guest

  2. Similar Questions and Discussions

    1. FormsAuthentication
      Hi, i am using forms authentication in an ASP.NET project I am setting the Forms authentication cookie by using:...
    2. BUG With FormsAuthentication
      The authentication cookie with custom user is not available or the user data is gone after a redirect. In other words all the examples on the net on...
    3. FormsAuthentication with Machine Name
      I had licked this problem once and it resurfaced and won't go away. When I browse to a site with my machine name FormsAuthetication appears to...
    4. FormsAuthentication.signout does not ??
      I am using forms authentication to secure my pages. For my logout, I created a logout page with FormsAuthentication.signout is called at the...
    5. FormsAuthentication - Changes in .Net Framework 1.1!?
      I am not sure what is causing this problem but I ran into it before. I did not spend time trying to solve it since we are still working in 1.0...
  3. #2

    Default Re: FormsAuthentication using xml file

    Hi,
    I don't know if I'm missing something here but you can redirect to the page
    you want to (a simple Response.Redirect() ) based on the result of
    User.IsInRole( [Admin] ) or the IsInRole() method of whatever implementation
    of IPrincipal you have, instead of using
    FormsAuthentication.RedirectFromLoginPage().

    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://www.lagash.com[/url]



    "smita" <smita@rarefind.com> wrote in message
    news:#l3vHtK5DHA.1504@TK2MSFTNGP12.phx.gbl...
    > Hi Andrea,
    >
    > Thanx for the link to the article ...It was really useful...but again
    i
    > have a question which remains unanswered...Please can u help me with
    that..
    > If my user is authenticated the
    > FormsAuthentication.RedirectFromLoginPage() takes me to default.aspx...but
    > what i want is if the user who is authenticated is an administrator he
    shud
    > be directed to a page called AdminOptions.aspx but if the user who is
    > authenticated is not an administrator then he shud be directed to some
    other
    > page ...say XYZ.aspx....I cannot have two Default.aspx pages...Then how
    can
    > i specify these page redirections..instead of using only Default.aspx.
    >
    > Any advice wud be helpful..
    > Thanx:-)
    > regards,
    > smita.
    >
    >

    Hernan de Lahitte Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139