I have various web pages in two different "web application" project
assemblies (WebClient1 and WebClient2), and another "class library" assembly
WebLib. I have methods in the library which set and read session variables.
However, I'm finding that if I set a session variable in a call from
WebClient1, I cannot read that session variable in a call from WebClient2.
Is this normal? What can I do about this ? 5 1511
Yes it's normal. Sessions are per application - not per web server. So this
is normal behavior.
You will have to manage your own state (via sqlserver, as an example) if you
need different web applications to share data.
"JezB" <je**@somewhere.com> wrote in message
news:uV**************@TK2MSFTNGP11.phx.gbl... I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library"
assembly WebLib. I have methods in the library which set and read session
variables. However, I'm finding that if I set a session variable in a call from WebClient1, I cannot read that session variable in a call from WebClient2. Is this normal? What can I do about this ?
It's the same application, but my solution is split across two "projects". I
think I need to play about with Web.Config ...
"Marina" <so*****@nospam.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl... Yes it's normal. Sessions are per application - not per web server. So
this is normal behavior.
You will have to manage your own state (via sqlserver, as an example) if
you need different web applications to share data.
"JezB" <je**@somewhere.com> wrote in message news:uV**************@TK2MSFTNGP11.phx.gbl... I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library" assembly WebLib. I have methods in the library which set and read session variables. However, I'm finding that if I set a session variable in a call from WebClient1, I cannot read that session variable in a call from
WebClient2. Is this normal? What can I do about this ?
That's what Marina was implying - you can't share a session variable accross
projects. You will need to store/persist the data in another way, like
storing the data in SQL Server and reading it as the user enters the new
application.
mark www.dovetaildatabases.com
"JezB" <je**@somewhere.com> wrote in message
news:eU**************@TK2MSFTNGP10.phx.gbl... It's the same application, but my solution is split across two "projects".
I think I need to play about with Web.Config ...
"Marina" <so*****@nospam.com> wrote in message news:%2***************@tk2msftngp13.phx.gbl... Yes it's normal. Sessions are per application - not per web server. So this is normal behavior.
You will have to manage your own state (via sqlserver, as an example) if you need different web applications to share data.
"JezB" <je**@somewhere.com> wrote in message news:uV**************@TK2MSFTNGP11.phx.gbl... I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library" assembly WebLib. I have methods in the library which set and read session variables. However, I'm finding that if I set a session variable in a call from WebClient1, I cannot read that session variable in a call from WebClient2. Is this normal? What can I do about this ?
A solution is just a way to group projects - it doesn't mean it's one
application. Conceptually, to you, it is one application. But as far as IIS
is concerned, it is two applications that have no connection.
VS.NET creates a different web application for each web project - they each
have their own virtual directory, and thus each is a separate web
application.
"JezB" <je**@somewhere.com> wrote in message
news:eU**************@TK2MSFTNGP10.phx.gbl... It's the same application, but my solution is split across two "projects".
I think I need to play about with Web.Config ...
"Marina" <so*****@nospam.com> wrote in message news:%2***************@tk2msftngp13.phx.gbl... Yes it's normal. Sessions are per application - not per web server. So this is normal behavior.
You will have to manage your own state (via sqlserver, as an example) if you need different web applications to share data.
"JezB" <je**@somewhere.com> wrote in message news:uV**************@TK2MSFTNGP11.phx.gbl... I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library" assembly WebLib. I have methods in the library which set and read session variables. However, I'm finding that if I set a session variable in a call from WebClient1, I cannot read that session variable in a call from WebClient2. Is this normal? What can I do about this ?
See: http://support.microsoft.com/default...Product=aspnet
"JezB" <je**@somewhere.com> wrote in message
news:uV**************@TK2MSFTNGP11.phx.gbl... I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library"
assembly WebLib. I have methods in the library which set and read session
variables. However, I'm finding that if I set a session variable in a call from WebClient1, I cannot read that session variable in a call from WebClient2. Is this normal? What can I do about this ?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: yoshibebe |
last post by:
Hi, I have developed a project on my local machine. The session state
variables are working fine on my local machine. When I port it into a
another server called v-projects, and I try to run the...
|
by: Hema S via DotNetMonster.com |
last post by:
Dear All,
Problem 1
-----------
I am using Sql Server for session state and setting the timeout property.
But my session is not getting expired at all.
Snippet
<sessionState...
|
by: guoqi zheng |
last post by:
I have an application in IIS with a few sub domains assign to it. Is there a
way for me to share session data across those subdomains?
regards,
Guoqi Zheng
http://www.ureader.com
|
by: McGeeky |
last post by:
Is there a way to get a user control to remember its state across pages? I
have a standard page layout I use with a header and footer as user controls.
Each page uses the same layout by means of...
|
by: Sean |
last post by:
Problem with sessions
I have created an application without concern for sessions. As it turns out
I think that might be my undoing.
What I have:
I have an online quiz.
I don’t need to know...
|
by: Bhagya |
last post by:
Hello,
On the LogOut Page i have done Session.Abandon();
And on every Page, In the Page_Load Event i check if the session exists
and only then display data.
Now the problem is after i logout from...
|
by: =?Utf-8?B?V2FubmFiZQ==?= |
last post by:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionState is set to true, either
in a...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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,...
|
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$) {
}
...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |