473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

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
Nov 25 '05 #1
2 3170
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" <lo**@gfi.com> wrote in message
news:ey**************@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

Nov 25 '05 #2
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:
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" <lo**@gfi.com> wrote in message
news:ey**************@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


Nov 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: AARON PECORARO | last post by:
I need to split apart my web application into multiple projects to allow it to be distributed in parts, but all of the projects need to work together (ie. they need to share session information)....
1
by: Oleg Ogurok | last post by:
Hi all, I was wondering if there was a way to pass the entire collection of ASP Session variables into a COM function. Inside COM, I need to have something like Public Function...
1
by: Ann Leland | last post by:
I have been using session variables to pass a user name from one ASP page to another inside framesets for 9 months and it stopped working this week. I have made no code changes but there was a...
6
by: Gonenc Ercan | last post by:
Hi, I ve ended up debugging a ASP.NET project (with about 380 files on the project .NET Framework 1.0 on IIS 5.0) which has a memory leak... The memory rises too fast. With about 25-30 active...
2
by: George | last post by:
Hi In my ASP.NET project, I have a session variable that is assigned on a login page. In another .cs file (in another directory), I'm trying to use if((string)Session == "something" When I...
4
by: avdbrink | last post by:
I'm building an application wich should be used by other websites inside an iFrame. My app stores some sessionvariables, but sometimes in IE (6 and 7) IIS seems to restart the session on each...
8
by: eric | last post by:
I have a 2.0 asp.net project. In a class contained within a seperate project, I am trying to reference HttpContext.Current.Session but Session is always null. I've tried implementing...
0
by: tharika_c | last post by:
Hi, We have a simple ASP.NET web application where one of the Session variables, called Session("SSO_ID") gets created and assigned a value (equal to the HTTP_HRID request variable value),...
14
by: Rick | last post by:
We are in the process of testing a large web project that I converted from VS 2003 to VS 2005. Everything seems to be working except for a few minor things. But the main issue I have is this, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.