1

I have to share session data between two different Asp.Net Application. The deployment of web apps are as shown below.

 WebSite
    --WebApp1
    --WebApp2

I have to use same Session data between WebApp1 and WebApp2. Also WebApp1 and WebApp2 both share the same Domain(www.WebSite.com) and AppPool

What is the easiest way to make these two WebSite share the Session State data?

Can I use Asp.Net State Server to share the Session data between the above two WebApps?

3
  • What would you use as a server, because you need to use some sort of database I believe? Commented Jun 23, 2010 at 12:18
  • @Brian:State Server can be used to save session without using Sql Server. Commented Jun 23, 2010 at 16:05
  • possible duplicate of Synchronizing ASP.NET Sessions Across Multiple Sites Commented Jun 24, 2010 at 20:23

1 Answer 1

1

you can use stateserver which stores the session state in memory, for more details go here

Sign up to request clarification or add additional context in comments.

2 Comments

That explain how to use Session State Server. Not how to share the Session state between two WebApps.
I don't believe that StateServer will allow you to share session information easily between two applications, as the session key is application specific (it is good for sharing state between the same application running on multiple servers). What @Amitabh will need to do is save the information into a shared database (or similar) and work from there. See stackoverflow.com/questions/391912/… and others under "Related" to the right -->

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.