473,387 Members | 1,859 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,387 software developers and data experts.

Forgive me, I'm an idiot but can someone clear up something for me? ASP.Net Session Vars.

Is there really no way to have different asp.net applications share session
variables?
The problem I'm running into is that I have numerous asp.net (and asp)
applications that were written as standalone apps and are now one by one
being added to an umbrella project.

For instance OpenOrderReport is a asp project with numerous references to
third part controls, etc. It's existed a
http://where-ever/Openorderreport for months and is now being moved to
http://where-ever/MySalesApp/OpenOrderReport with other related
applications. It would be really really handy if all of the apps in the
MySalesApp folders could share session variables with one another for things
that aren't approprite in cookies or hidden fields.

I've been able to do it in the past but only by adding the sub apps as
directories to a master project and adding them as references to the master
projects. This seemed hokey, though - in that I had bin\ folders in the sub
projects and the main and just doesn't "feel" like a clean solution. So,
my question is - can I, through configuring session state mode to
StateServer, share sessions among these things without going through all of
the steps of blowing away the individual IIS metabase descriptions and
referencing the sub projects into, in this case a "MySalesApp" master
project?
Is there a cleaner way to add the 'baby projects" to momma?

Thanks
Bill


Nov 17 '05 #1
4 1686
Bill,

You're forgiven.

Sorry to hear about the idiot thing... :-)

Uhhhh, hope it clears up...

Here's an article I think you'll find interesting:

http://www.asp101.com/articles/jayra...te/default.asp
Sincerely,

(Well, maybe that wasn't so sincere.)

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Bill Dodd" <bi**@interwizard.com> wrote in message
news:bp*********@enews1.newsguy.com...
Is there really no way to have different asp.net applications share session variables?
The problem I'm running into is that I have numerous asp.net (and asp)
applications that were written as standalone apps and are now one by one
being added to an umbrella project.

For instance OpenOrderReport is a asp project with numerous references to
third part controls, etc. It's existed a
http://where-ever/Openorderreport for months and is now being moved to
http://where-ever/MySalesApp/OpenOrderReport with other related
applications. It would be really really handy if all of the apps in the
MySalesApp folders could share session variables with one another for things that aren't approprite in cookies or hidden fields.

I've been able to do it in the past but only by adding the sub apps as
directories to a master project and adding them as references to the master projects. This seemed hokey, though - in that I had bin\ folders in the sub projects and the main and just doesn't "feel" like a clean solution. So,
my question is - can I, through configuring session state mode to
StateServer, share sessions among these things without going through all of the steps of blowing away the individual IIS metabase descriptions and
referencing the sub projects into, in this case a "MySalesApp" master
project?
Is there a cleaner way to add the 'baby projects" to momma?

Thanks
Bill

Nov 17 '05 #2
Hey no biggy on the idiot thing. When I started out in dotnet, I knew
things.. The more I do in dotnet, the less I know. =)

Thanks for the link. Have you tried that before? You know, I found that
link once before, followed the steps verbatim, i thought - and it didn't
work. I'll give it another try. Maybe it was too close to happy hour
last time.
Bill Dodd

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:uH*************@TK2MSFTNGP10.phx.gbl...
Bill,

You're forgiven.

Sorry to hear about the idiot thing... :-)

Uhhhh, hope it clears up...

Here's an article I think you'll find interesting:

http://www.asp101.com/articles/jayra...te/default.asp
Sincerely,

(Well, maybe that wasn't so sincere.)

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Bill Dodd" <bi**@interwizard.com> wrote in message
news:bp*********@enews1.newsguy.com...
Is there really no way to have different asp.net applications share

session
variables?
The problem I'm running into is that I have numerous asp.net (and asp)
applications that were written as standalone apps and are now one by one
being added to an umbrella project.

For instance OpenOrderReport is a asp project with numerous references to third part controls, etc. It's existed a
http://where-ever/Openorderreport for months and is now being moved to
http://where-ever/MySalesApp/OpenOrderReport with other related
applications. It would be really really handy if all of the apps in the MySalesApp folders could share session variables with one another for

things
that aren't approprite in cookies or hidden fields.

I've been able to do it in the past but only by adding the sub apps as
directories to a master project and adding them as references to the

master
projects. This seemed hokey, though - in that I had bin\ folders in the

sub
projects and the main and just doesn't "feel" like a clean solution. So, my question is - can I, through configuring session state mode to
StateServer, share sessions among these things without going through all

of
the steps of blowing away the individual IIS metabase descriptions and
referencing the sub projects into, in this case a "MySalesApp" master
project?
Is there a cleaner way to add the 'baby projects" to momma?

Thanks
Bill


Nov 17 '05 #3
Bill,

No, I haven't tried it. But it sure sounds good!

I hope it works for you this time.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Bill Dodd" <bi**@interwizard.com> wrote in message
news:bp*********@enews1.newsguy.com...
Hey no biggy on the idiot thing. When I started out in dotnet, I knew
things.. The more I do in dotnet, the less I know. =)

Thanks for the link. Have you tried that before? You know, I found that
link once before, followed the steps verbatim, i thought - and it didn't
work. I'll give it another try. Maybe it was too close to happy hour
last time.
Bill Dodd

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:uH*************@TK2MSFTNGP10.phx.gbl...
Bill,

You're forgiven.

Sorry to hear about the idiot thing... :-)

Uhhhh, hope it clears up...

Here's an article I think you'll find interesting:

http://www.asp101.com/articles/jayra...te/default.asp
Sincerely,

(Well, maybe that wasn't so sincere.)

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Bill Dodd" <bi**@interwizard.com> wrote in message
news:bp*********@enews1.newsguy.com...
Is there really no way to have different asp.net applications share

session
variables?
The problem I'm running into is that I have numerous asp.net (and asp)
applications that were written as standalone apps and are now one by one being added to an umbrella project.

For instance OpenOrderReport is a asp project with numerous references to third part controls, etc. It's existed a
http://where-ever/Openorderreport for months and is now being moved to
http://where-ever/MySalesApp/OpenOrderReport with other related
applications. It would be really really handy if all of the apps in the MySalesApp folders could share session variables with one another for

things
that aren't approprite in cookies or hidden fields.

I've been able to do it in the past but only by adding the sub apps as
directories to a master project and adding them as references to the

master
projects. This seemed hokey, though - in that I had bin\ folders in
the
sub
projects and the main and just doesn't "feel" like a clean solution. So, my question is - can I, through configuring session state mode to
StateServer, share sessions among these things without going through

all of
the steps of blowing away the individual IIS metabase descriptions and
referencing the sub projects into, in this case a "MySalesApp" master
project?
Is there a cleaner way to add the 'baby projects" to momma?

Thanks
Bill



Nov 17 '05 #4
Asp.net, Dotnetnuke.com and ibuyspy.com have the answer again...

I ran across an MSDN article, very similar to the asp101 article in this
thread that discussed copying projects under a master projects and going
through the steps of referencing them in your master project so that you
could debug/step through them. I wasn't crazy about that solution in that
I had two seperate bin/ folders and thus the potential for multiple versions
of referenced controls, etc. (in fact, it happened - several times.)

The behavior was quite odd in that the dll's were needed in both places for
the app to work. Finally, I started thinking about the ibuyspy/dotnetnuke
method of adding modules. You copy the ascx/aspx files and their .vb
counterparts to a subdirectory of a master project. Don't copy any
project-definition style files like assemblyinfo or web.config, solution and
project files. On the master project, Go to project - Show All. Find
the folder you added, (it will be greyed out) right click on it and hit
inlude in project. Make sure the master project references everything the
"module" you just added, needs and when you compile, you have one bin folder
and one set of dependencies - and a project you can step through since it
treats the peripheral code as a module.
I guess I'm happier with this than the older way but I still wish we could
access sessions from other appdomains..

Oh, well.

Thanks for the help, I had forgotten about that article on asp101. It
helped a bunch.

Bill

"Bill Dodd" <bi**@interwizard.com> wrote in message
news:bp*********@enews1.newsguy.com...
Is there really no way to have different asp.net applications share session variables?
The problem I'm running into is that I have numerous asp.net (and asp)
applications that were written as standalone apps and are now one by one
being added to an umbrella project.

For instance OpenOrderReport is a asp project with numerous references to
third part controls, etc. It's existed a
http://where-ever/Openorderreport for months and is now being moved to
http://where-ever/MySalesApp/OpenOrderReport with other related
applications. It would be really really handy if all of the apps in the
MySalesApp folders could share session variables with one another for things that aren't approprite in cookies or hidden fields.

I've been able to do it in the past but only by adding the sub apps as
directories to a master project and adding them as references to the master projects. This seemed hokey, though - in that I had bin\ folders in the sub projects and the main and just doesn't "feel" like a clean solution. So,
my question is - can I, through configuring session state mode to
StateServer, share sessions among these things without going through all of the steps of blowing away the individual IIS metabase descriptions and
referencing the sub projects into, in this case a "MySalesApp" master
project?
Is there a cleaner way to add the 'baby projects" to momma?

Thanks
Bill

Nov 17 '05 #5

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

Similar topics

0
by: james | last post by:
I am new to php and need some help getting the session variables into include files. (after-thought, Sorry for the drawn out post but I really, really need help....;) Here's what I'm doing.. ...
1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
19
by: Paul Yanzick | last post by:
Hello, I am trying to develop a book tracking application for my capstone in school, and am running into a problem. The application is an ASP.Net application written in C#. The first page you...
2
by: Darren Clark | last post by:
I am having some troubles with Sessin varables dieing.. Basically ihave my own class structure called USER that once the user logs in i save it to a session var called Session = myUserObject; ...
3
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net...
1
by: Larry Neylon | last post by:
Hi, I'm working on a VBScript application on IIS6 and I'm looking for some advice about the best way of replacing or improving session variable usage. The application is in a secure extranet...
2
by: Jeff | last post by:
....still new to .net 2005 using VB. Do I understand correctly that the value of a session variable is actually stored in the server's ram, but relies on the asp.net session ID cookie that...
2
by: Agent H | last post by:
Hi all, Anyone out there using session vars to hold user information when a user logs in to your Web site, and sometimes having the Session Vars not get set (especially in IE)? My situation...
9
by: stack | last post by:
Hi all, I am creating a web app using JSP. I have a bean with some variables whose values are set by the user by using a form in a jsp (method is post). When the user enters those values these are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.