473,509 Members | 2,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can you share session state with parent project

Hello,

Working in ASP.NET. I want to create several projects on the web server

/Online

/Online/App1
/Online/App2
/Online/App3

The /Online project will handle all of the user authentication and present
them with a list of applications they can access (App1, App2, App3)

/Online/App1, App2, and App3 are separate projects but I want them to be
able to access the session variables defined in /Online. Is it possible to
share the session information between the projects?

Thanks

Bill Reynen
Nov 18 '05 #1
1 1285
The real question is not that of projects, which are Visual Studio.Net
entities, but of Web Applications. In IIS, an Application is defined by the
configuration of the web server directory in which the files and folders
that constitute the Application reside. When you create an ASP.Net Project
in Visual Studio.Net, it creates an Application for you in the web folder in
which your Project files reside. However, you can certainly deploy multiple
"projects" into the same Application. The tricky part is the web.config
files. There can only be one root web.config file, although each folder in
the Application can have a web.config file in it, as long as that web.config
file doesn't have any "machine-to-application" configuration elements in it.
Details about this can be found at the following URL:

http://msdn.microsoft.com/library/de...figuration.asp

If you plan to combine these Applications, you can certainly do so by
removing the Application configuration from each sub-folder. Again, however,
remember that it can be tricky to set this up after developing each part as
a separate project. For example, all DLLs must be placed in the same (root)
bin folder. And there may be complications arising from the way you
structured each separate project when you developed it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Bill Reynen" <re***********@uif.uillinois.edu> wrote in message
news:eU*************@TK2MSFTNGP11.phx.gbl...
Hello,

Working in ASP.NET. I want to create several projects on the web server

/Online

/Online/App1
/Online/App2
/Online/App3

The /Online project will handle all of the user authentication and present
them with a list of applications they can access (App1, App2, App3)

/Online/App1, App2, and App3 are separate projects but I want them to be
able to access the session variables defined in /Online. Is it possible to share the session information between the projects?

Thanks

Bill Reynen

Nov 18 '05 #2

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

Similar topics

3
8378
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)....
2
1403
by: VB Programmer | last post by:
I've read that you can save a session state variable created by an ASP page into a db so that the value of the session state variable can be read/used by an ASP.NET webform. Question: Let's say...
3
3302
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes....
1
1115
by: Raed Sawalha | last post by:
I have a web application with 100 pages and 30 user controls so we decided to separate some pages and controls into sub projects ( the generated subprojects was 2) the problem we have that now the...
4
15147
by: Aidas Pasilis | last post by:
I'm saving some values to the Session state and get some strange results. To be short I'll write example code and standart behavior: Code Example:...
6
1056
by: Gregory Gadow | last post by:
In a VB.Net 2.0 project, I have a WizardClass that contains a List (of RuleClass). Each rule needs access to variables within it's parent wizard, so the constructor for RuleClass is New (ByVal...
5
2155
by: Joe | last post by:
I have an application which runs in a non-secure environment. I also have an application that runs in a secure environment (both on the same machine). Is there any way to share the session data for...
1
5623
by: Hans Kesting | last post by:
Hi, Is it possible to share sessions between subdomains? Say: the user logs in at www.company.com, and is redirected to my.company.com. This is a different url for the same application. Can I...
18
3401
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
0
7237
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
7347
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
7416
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...
1
7073
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
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.