472,374 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 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 1626
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.