FormsAuthentication + Protection + Recycling

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

  1. #1

    Default FormsAuthentication + Protection + Recycling

    When a client enters the site I check for a persistent cookie of short
    duration, and if present decrypt it to obtain identification data, that is
    restored to the session state if necessary. the Protection parameter in the
    web config file is set to "All". The host server is running W2003 os, which
    is recycling every 10 minutes. When recycling occurs, and a client's cookie
    checked thereafter, the decryption causes an exception with the message "bad
    data". Someone suggested setting the Protection parameter to "None", which
    works fine, and decryption is successful. What bothers me is concern over
    security. What is the price? The cookie appears to be encrypted. I would
    like to know if decryption can be made to work across recycling with optimum
    security.

    Appreciate your thoughts.

    --
    Thanks,
    StanD
    StanD Guest

  2. Similar Questions and Discussions

    1. Can't empty the recycling bin because of ai files
      Hello World, I am using windows XP and Illustrator 9.0. I am able to delete items but am not able to open the recycling bin. I've tried going...
    2. [BUG] Fatal recycling of SystemStackErrors
      Moin! In Ruby 1.8.0 old SystemStackErrors seem to be reused when there should have been raised a new one instead: irb(main):001:0> y = proc {...
    3. ASP shutting off, needs recycling often
      http://www.aspfaq.com/5005 Ray at work "NewbieSupreme" <newbiesupreme@yahoo.com> wrote in message...
    4. Recycling aspnet_wp.exe a pain in the !@#$%
      I've been spending some time recently writing some ASP.NET authentication code that relies on CAS to minimize the threat posed by luring attacks....
    5. Flash with Nikon N65: Recycling and Shutter Release Lock
      I have a Nikon N65. As I've said many times before--almost as if I'm apologizing for choosing a N65, and I'm not (just acknowledging how great the...
  3. #2

    Default Re: FormsAuthentication + Protection + Recycling

    >> Protection parameter to "None", which works fine, and decryption is
    >> successful.
    sure?

    [...]
    None:
    Specifies that both encryption and validation are disabled for sites that
    are using cookies only for personalization and have weaker security
    requirements. Using cookies in this manner is not recommended; however, it
    is the least resource-intensive way to enable personalization using the .NET
    Framework.
    [...
    from
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfForms.asp[/url]
    ]

    By default IIS 6.0 is configured to recycle its worker process every 29
    hours. If You have problems with recycling it every 10 minutes try to
    recycle it after a defined amount of requests or memory usage...

    ([url]http://www.asp.net/faq/AspNetAndIIS6.aspx[/url])



    Daniel

    --
    Daniel Fisher(lennybacon)
    MCP C# ASP.NET
    Blog: [url]http://www.lennybacon.com/[/url]


    Daniel Fisher\(lennybacon\) 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