Forum Moderators: open
The only methods I have devised at the moment are as follows:
1. Write and install an ISAPI filter to parse the incoming requests.
2. Create a temp_images folder. When a page request comes in you set up a timestamped image in the temp_images folder using the FileSystemObject, this can be written into the page based on the incoming SessionID. You can use the FileSystemObject to clear the images out once they have served there useful purpose.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<httpHandlers>
<add verb="GET,HEAD" path="*.png" type="Namespace.ClassName,ClassName" />
</httpHandlers>
</system.web></configuration>
Where Namespace and ClassName are replaced by your namespace and classname. Then create some code that gets called when a png (or whatever) file is called. For example:
Public Class ClassName
Implements IHttpHandlerPublic Sub ProcessRequest(ByVal context As System.Web.HttpContext) _
Implements System.Web.IHttpHandler.ProcessRequest'code here to deliver file
End Sub
httpHandlers are the replacements for ISAPI filters in .NET.