Home All Groups Group Topic Archive Search About

reading the session inside a Dll project using asp.net 1.1

Author
25 Nov 2005 11:08 AM
Loui Mercieca
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

Author
25 Nov 2005 12:47 PM
Karl Seguin
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/



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
>
Are all your drivers up to date? click for free checkup

Author
26 Nov 2005 1:07 PM
prabhupr
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
> >

Bookmark and Share