Using with Web Gardens

Topics: Features, General Discussion
Jul 5, 2007 at 6:50 PM

is there any chance I could make AIP work when using the web garden functionality of WIN 2003?


Jul 5, 2007 at 8:13 PM
Edited Jul 5, 2007 at 10:38 PM
Hi Paul,

That's a good question.

AIP generates a random key and associates it with the bitmap that is generated on the server. The key is used in the query string of the <img src="..." /> tag for the bitmap. The image request handler uses the key to determine the correct bitmap that must be streamed to the browser.

The AutoInputProtection.GenerateAndCacheBitmap method uses the ASP.NET Cache to store the key and the bitmap. If you want to make them available to other processes or servers then you need to use shared state instead of the Cache. That means you'll have to make the appropriate changes to the AIP library.

For example, in place of context.Cache.Add(key, ...) you could use context.Session.Add(key, ...) and then configure your website to use shared session state.

If you try this please let me know if it works for you. Also, you should add a feature request for the next release :)

Jul 18, 2007 at 9:16 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.