Professional Web Applications Themes

asp.net login contol using url redirect - ASP.NET Security

Hello I have an asp.net website that uses the login control and a custom build membership provider. The site is running fine, but the problem is that i cannot use it in a frame from another site. When logging in the login screen just reapears. It will however give back a message if a wrong username/password combination is given. I could of course put the code on the site that uses the frame, but the component is to be used from several sites and I would really like to keep the code on one server to easially be able to ...

  1. #1

    Default asp.net login contol using url redirect

    Hello

    I have an asp.net website that uses the login control and a custom build
    membership provider. The site is running fine, but the problem is that
    i cannot use it in a frame from another site. When logging in the login
    screen just reapears. It will however give back a message if a wrong
    username/password combination is given.
    I could of course put the code on the site that uses the frame, but the
    component is to be used from several sites and I would really like to
    keep the code on one server to easially be able to upgrade the
    underlying pages.

    /rw
    Rico Guest

  2. #2

    Default Re: asp.net login contol using url redirect

    Hello Rico,

    so the login control is in a different application on your server??

    the resulting authentication cookie is encrypted, with a key that is unique
    for each application. So if LoginApp1 creates and encrypts the cookie MainApp
    will not be able to decrypt the cookie again.

    You can manually set the key used for enc/decyption and it has to be the
    same for both apps.

    Have a look at the machineKey section in machine/web.config. We have a tool
    on our website which can generate you the necessary xml elements - just copy
    that to all web.configs or machine.config if you want to have the same key
    for all apps on the machine.
    http://www.develop.com/technology/resourcedetail.aspx?id=78da5ca5-5079-4f8f-99c5-b080117ceac0

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com
     



    Dominick Guest

  3. Moderated Post

    Default Re: asp.net login contol using url redirect

    Removed by Administrator
    Rico Guest
    Moderated Post

  4. Moderated Post

    Default Re: asp.net login contol using url redirect

    Removed by Administrator
    Dominick Guest
    Moderated Post

  5. Moderated Post

    Default Re: asp.net login contol using url redirect

    Removed by Administrator
    Rico Guest
    Moderated Post

  6. Moderated Post

    Default Re: asp.net login contol using url redirect

    Removed by Administrator
    Dominick Guest
    Moderated Post

Similar Threads

  1. Question redirect on login
    By Kirkman in forum Brainstorming Area
    Replies: 0
    Last Post: June 27th, 08:47 PM
  2. Login Redirect
    By James Jiao in forum PHP Development
    Replies: 7
    Last Post: September 25th, 08:12 AM
  3. How to set redirect default on login?
    By Eric Newton in forum ASP.NET Security
    Replies: 4
    Last Post: June 10th, 01:23 AM
  4. Cookie not set after login and redirect
    By Faassen, B. in forum ASP.NET Security
    Replies: 0
    Last Post: August 3rd, 02:35 PM
  5. Replies: 6
    Last Post: September 10th, 04:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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