|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
reading the session inside a Dll project using asp.net 1.1Hi,
I have 2 web projects in asp.net 1.1. They are 2 different applications but have some common processing. I would like to create a dll file which takes care of all my logic and so centralizing the proccessing. The problem is, how i can access the session inside classes in a class library project. Thanks Make sure System.Web is referenced and use HttpContext.Current.Session
Problem is, if you are building a multi-tiered system, you're dll is now linked to your presentation layer (atleast in this case). Karl Show quoteHide quote "Loui Mercieca" <l***@gfi.com> wrote in message news:eyHdmCb8FHA.3804@TK2MSFTNGP12.phx.gbl... > Hi, > > I have 2 web projects in asp.net 1.1. They are 2 different applications > but have some common processing. I would like to create a dll file which > takes care of all my logic and so centralizing the proccessing. The > problem is, how i can access the session inside classes in a class library > project. > > Thanks > Hi Loui, Karl
Note -- For ASP.NET 1.1, in the past we had encountered problems where we were loosing session values (we had clustered though). Also if the application needs to be moved to seperate boxes (for any reason) you might end up testing / writing additional code. We resolved this issue by moving all session information to a single DB repository Thanks PP Karl Seguin wrote: Show quoteHide quote > Make sure System.Web is referenced and use HttpContext.Current.Session > > Problem is, if you are building a multi-tiered system, you're dll is now > linked to your presentation layer (atleast in this case). > > Karl > > -- > > MY ASP.Net tutorials > http://www.openmymind.net/ > > > > "Loui Mercieca" <l***@gfi.com> wrote in message > news:eyHdmCb8FHA.3804@TK2MSFTNGP12.phx.gbl... > > Hi, > > > > I have 2 web projects in asp.net 1.1. They are 2 different applications > > but have some common processing. I would like to create a dll file which > > takes care of all my logic and so centralizing the proccessing. The > > problem is, how i can access the session inside classes in a class library > > project. > > > > Thanks > >
Other interesting topics
Consuming less memory when writing a file?
run asp.net without a web server Visual Web Developer Express How do I build Code-behind into DLL in bin folder Downloading file from database Problem Running ASP.NET/ASP App Under VS 2005 ASP classic -> ASP.NET 2.0 A translatable website Cannot display Chinese data from database specifying a query string in an href dynamically Disabling Link Button Column in Datagrid |
|||||||||||||||||||||||