N
Nate
All,
My department has recently been tasked with converting an ASP 3.0 web
application to an ASP.NET 2.0 web application. Currently, in order to read
values from the ASP 3.0 Session from an ASP.NET web page we have to use a
session bridging technique. There are several techniques out there to
workaround the incompatibility of the 2 session state storage mechanisms (3.0
vs .NET). The problem that I have with all of the techniques is the extra
time that elapses as we "call" the bridge from the ASP.NET page. The system
is already highly stressed with its abundance of users and I am looking for a
more elegant and faster solution.
What I would like to do is make a .NET library that will wrap the
ASPTypeLibrary.Session. The problem is that since the .NET library will be
invoked from a .NET web page, it won't have any ObjectContext in order to
initialize an object of type ASPTypeLibrary.Session. To further complicate
matters, there is no mechanism that I see that I can use in order to get a
reference to the "legacy" session. I can read out all of the possible values
that my library would need in order to "feed" the asp library in order to
fetch an existing instance of an ASP 3.0 session (i.e. ASPSESSID cookie,
virtual directory actual path, hostname, ip, relative path, etc, etc, etc).
My problem is that I can't find where I can "feed" all of this info to (or
parts thereof) in order to get what I want back out.
I realize that this may very well delve deeply into
behind-the-scenes-programming-voodoo, and I am fine with that. It will be
very well tested before we let it go out to our production web servers.
Any suggestions, links, etc... will be very much appreciated.
Thanks,
Nathan
My department has recently been tasked with converting an ASP 3.0 web
application to an ASP.NET 2.0 web application. Currently, in order to read
values from the ASP 3.0 Session from an ASP.NET web page we have to use a
session bridging technique. There are several techniques out there to
workaround the incompatibility of the 2 session state storage mechanisms (3.0
vs .NET). The problem that I have with all of the techniques is the extra
time that elapses as we "call" the bridge from the ASP.NET page. The system
is already highly stressed with its abundance of users and I am looking for a
more elegant and faster solution.
What I would like to do is make a .NET library that will wrap the
ASPTypeLibrary.Session. The problem is that since the .NET library will be
invoked from a .NET web page, it won't have any ObjectContext in order to
initialize an object of type ASPTypeLibrary.Session. To further complicate
matters, there is no mechanism that I see that I can use in order to get a
reference to the "legacy" session. I can read out all of the possible values
that my library would need in order to "feed" the asp library in order to
fetch an existing instance of an ASP 3.0 session (i.e. ASPSESSID cookie,
virtual directory actual path, hostname, ip, relative path, etc, etc, etc).
My problem is that I can't find where I can "feed" all of this info to (or
parts thereof) in order to get what I want back out.
I realize that this may very well delve deeply into
behind-the-scenes-programming-voodoo, and I am fine with that. It will be
very well tested before we let it go out to our production web servers.
Any suggestions, links, etc... will be very much appreciated.
Thanks,
Nathan