Forms authentication & Cache

Discussion in 'ASP .Net Web Services' started by Søren M. Olesen, May 11, 2005.

  1. Hi

    Is it possible (somehow) to share the same cache
    (System.Web.HttpContext.Current.Cache) between a Web-application (.aspx)
    running Forms authentication and a Web-Service (.asmx) ??

    It seems like you'd have to split them into two different Web-Sites as soom
    as you start running Forms authentication....but is there a way to still
    share the cache between them??

    TIA

    Søren
    Søren M. Olesen, May 11, 2005
    #1
    1. Advertising

  2. Søren M. Olesen

    Brock Allen Guest

    If they are configured in the same virtual directory in IIS then they will
    share all in memory state, Cache included. If you're using forms auth, you
    can always allow anonymous access to the ASMXs files via the <location> element
    in web.conifg:

    <configuration>
    <system.web> .... </system.web>
    <location path="MyService.asmx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Hi
    >
    > Is it possible (somehow) to share the same cache
    > (System.Web.HttpContext.Current.Cache) between a Web-application
    > (.aspx) running Forms authentication and a Web-Service (.asmx) ??
    >
    > It seems like you'd have to split them into two different Web-Sites as
    > soom as you start running Forms authentication....but is there a way
    > to still share the cache between them??
    >
    > TIA
    >
    > Søren
    >
    Brock Allen, May 11, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    2
    Views:
    1,449
    Tommy
    Feb 13, 2004
  2. JEFF
    Replies:
    1
    Views:
    1,012
    =?Utf-8?B?YnJpYW5zW01DU0Rd?=
    Nov 12, 2007
  3. Rbrt
    Replies:
    4
    Views:
    368
    Scott Roberts
    Nov 26, 2007
  4. Replies:
    5
    Views:
    1,186
    Steven Cheng [MSFT]
    Aug 29, 2008
  5. Eric
    Replies:
    2
    Views:
    484
Loading...

Share This Page