Forms authentication & Cache

S

Søren M. Olesen

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
 
B

Brock Allen

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top