473,883 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to share session across multiple application in asp.net?

Hi all,

I have a solution which contains multiple projects.
Those multiple projects should share the same session. For example,
users login, create the session for users then these session information
should be accessed by multiple projects. How do I archieve this? Any
tutorial out there?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
2 5731
Session information is normally designed to be shared by the "Same" IIS
application only (including if this application lives on multiple machines
in a web farm) -- but NOT between "multiple applications", e.g. IIS apps
outside the originating IIS application VRoot.

If you truly want some sort of user-specific session object that can be
shared between multiple applications, you will need to either look at or
"roll your own" custom solution.
Hope this helps,
--Peter
"TaeHo Yoo" <yo******@yahoo .com> wrote in message
news:Oi******** ******@TK2MSFTN GP14.phx.gbl...
Hi all,

I have a solution which contains multiple projects.
Those multiple projects should share the same session. For example,
users login, create the session for users then these session information
should be accessed by multiple projects. How do I archieve this? Any
tutorial out there?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2
There is a product for web farms that enables you to do exactly
this not only across app domains on the same server but
across app domains on different servers.

Read more...

http://www.eggheadcafe.com/articles/scaleout_server.asp

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com .
http://www.eggheadcafe.com/forums/merit.asp

"TaeHo Yoo" <yo******@yahoo .com> wrote in message
news:Oi******** ******@TK2MSFTN GP14.phx.gbl...
Hi all,

I have a solution which contains multiple projects.
Those multiple projects should share the same session. For example,
users login, create the session for users then these session information
should be accessed by multiple projects. How do I archieve this? Any
tutorial out there?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #3

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

Similar topics

1
2541
by: ngodugu | last post by:
Hi All, Is there any way to use a common login page across multiple web applications? I have tried couple of things that were suggested on MSDN but they did not work. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconformsauthenticationacrossapplications.asp This technique falters when the second web application is looking for a
1
2687
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
5
2183
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 this? Most of the site allows the user to add things to a cart (non-secure), once they choose to check-out, I need this information which was stored in the session to be read by the payment page(secured). Hope this makes sense. It's probably...
3
1897
by: NAT | last post by:
I am using session mode as "InProc"(entered in web.config). I have deployed my ASP.NET appln. on a server which uses Load Balancer. i.e I have two servers. I am using session across pages.The problem I am facing is that sometimes I find the session and sometimes not. I beleive this is happenning because of multiple servers. Because session is created on a worker process on one server and the second time it must be hitting the other server...
13
8692
by: Samir Chouaieb | last post by:
Hello, I am trying to find a solution to a login mechanism for different domains on different servers with PHP5. I have one main domain with the user data and several other domains that need a login to show data. I want the user to login only once when he visits any of my domains.
4
2364
by: Vinnie123 | last post by:
I can't seem to get my PHP Session to continue across multiple pages. Here is a sample code I wrote: test.php <?php session_start(); $_SESSION = "feona"; header("Location: http://partynd.com/test2.php");
2
3395
by: metafedora | last post by:
I am trying to use Session and StateServer to store values to be used by two different Web Applications, which run on the same IIS, in different Virtual Directories. I have StateServer running on another machine (192.168.0.1). I have set the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection to 1. I create two Web Projects in Visual Studio: Redirect and Receive. Redirect has a...
5
2615
rajiv07
by: rajiv07 | last post by:
Hi to all I am wondering how do i share the session across multiple Domains.Suppose i have set session in example1.com and i want to access the session in example2.com which is set in example1.com.And both are in different IP address. If you have any idea or any reference material will be appreciated. Regards Rajiv
2
4352
by: Mas Heru | last post by:
I heard the best method to share session across multiple domains on same server is to use custom php session handler. (ie, domain name different like abc.com, xyz.com but single application.) But after i tried it, even custom php session handler that using SAME DATABASE ON 1 SERVER can't share session, when i tried to read cookie value from different domain. Here's my custom session handler, Please kindly check or fix if something missing...
0
9932
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11112
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9559
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7959
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7114
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3228
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.