.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Sharing Session between applications

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :ASP.Net

I would like to share the session variables between 2 applications. basically I have a website and in there I have 2 applications and want to share the session object betwen the two. Is there a way to set something in web.config to enable this?

View Complete Post

More Related Resource Links

Sharing the session variables between two .net applications using SQL Server Mode?

Hi, I have two different IIS applications within the same domain(let us say www.mydomain.com) , both of these applications use the same database instance(same connectionstring), now what I want is that both of applications can see each sessions variables , can SQL Server session state mode helps in this case? Did someone try that before? Is there any other way to share the session variables? Please help.  

Sharing authentication ticket between two applications


Hi all,

I have two web applications:

1. http://www.mysite.com - primary app running at the root of the web server

2. http://www.mysite.com/second_app - running in a virtual directory

At user authentication, I'm using FormsAuthenticationTicket to set up authentication cookies. Is it possible to share the same cookie for both the apps?

Any help would be much appreciated.

Many thanks!

Best Practices: Fast, Scalable, and Secure Session State Management for Your Web Applications


ASP.NET provides a number of ways to maintain user state, the most powerful of which is session state. This article takes an in-depth look at designing and deploying high-performance, scalable, secure session solutions, and presents best practices for both existing and new ASP.NET session state features straight from the ASP.NET feature team.

Mike Volodarsky

MSDN Magazine September 2005

asp and asp.net session sharing


What's the easiest way to share session state between asp & asp.net 2.0


Need help Session sharing


Hello frds,

I need help to share session in 6 web application.I want some sample code.

i tried several code but not able to resolve my problem.



Sharing Session between ASP and ASP.Net


We're re-writing the majority of a Classic ASP app to ASP.Net
However, there's a 3rd party Shopping Cart that we'd like to keep, but it uses Session state to associate the logged in person with the cart, and then, the database, etc.

I've heard that SQL Server can be used to store session state and share it between ASP and ASP.Net, though I've never used it.

Can it be used in this situation ?

Where can I learn more on this type of specific situation (if possible)?

Sharing authentication Cookie between asp.net and sharepoint applications

Hi All, I have a requirement to share the authenication cookie between my asp.net application with sharepoint site. asp.net application and sharepoint appli are in the same domain and using the same custom authentication provider to login. I have used same cookie name and same machine key for two applications. But i could'nt see any progress.... My actual requirement is.... if i open my asp.net application and logged in, then in the next tab i will open sharepoint fba site.... then it shouldn't ask for credentials again, directly it should login with the credentials which i used for asp.net application. Thanks in advance.

Token login don't keep session with two applications


Hi all,

I've two application ASP.NET (once is Mojo Portal). I can navigate from one to other using an URL token id.

To this way, by token, I create a new session and save the relative auth cookie.

But, sometimes, the asp web application don't keep the session and put me down. When this happen I can't login until the session cookies is not deleted.

Both the two application are behind an reverse proxy.

Somebody can help me?

Thank's all.

Session sharing with virtual folders



i have two solutions, 1. user management and 2. travel management. i publish the user management solution to http://localhost/usermanagement/ and i publish the travel management to http://localhost/usermanagement/travel here i face the problem. the default home page would be http://localhost/usermanagement/default.aspx, its a windows authentication in page load, i capture the username, pass it to procedure which will fetch me his credentials on access. i store these in a session. in the home page i have link to navigate to travel page, when i try to access the sessions in travel page, its empty. i tried printing the session id in both user management and travel, both are same but the sessions created in user management are empty in travel. what would be problem here and how can i resolve this. 

Sharing Session between WebMethod and WebBrowser


 I'm building a windows form that allows the user to manipulate an object and preview their changes in a web browser. In order to avoid data access I'm serializing the object and sending it to a web method. I then deserialize it and store it in the session. This all works fine.

However, when I attempt to open a new window and access a page that uses the stored session variable I am unable to access it because my session ID is different for the web browser.

Is there a way I can share a session ID between a WebMethod and WebBrowser?

All the research I've done points to extracting the session ID from the document and assigning it to the CookieContainer of the WebMethod. Since I'm not accessing a document before navigation the document object is null. I'd like to avoid accessing a dummy page in order to obtain a session ID. Is this possible?



P.S. Since I'm calling my webmethod first, can I extract the session ID from it and assign it to the web browser?

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

ASP.NET Best Practices for High Performance Applications

This article lists the techniques that you can use to maximize the performance of your ASP.NET applications. It provides common issues, design guidelines, and coding tips to build optimal and robust solutions.

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Business Modelling and Web Applications and extending UML

UML can be used to model a business, prior to automating it with computers. The same basic UML syntax is used, however, a number of new symbols are added, in order to make the diagrams more relevant to the business process world. A commonly-used set of these symbols is available in current versions of Rational Rose.

Building Layered Web Applications with Microsoft ASP.NET 2.0 - Part 1

"Building Layered Web Applications" that shows you how to build N-Layer applications with Microsoft ASP.NET 2.0. These articles teach you how to design, build and use custom business objects in your web application. The target audience for this series are developers that are ready to make the switch from using SqlDataSource controls to ObjectDataSource controls with custom business objects. Experience with ASP.NET 2 and C# is necessary while some knowledge about object oriented design certainly helps. The design I am going to show you in these articles is a simplified version of a design you would use in a real world application. It doesn't feature all the necessary functionality your application needs, but instead focuses on the underlying concepts.

How to improve the performance of ASP.NET MVC web applications

It is an in depth analysis of a Digg-like site and how it went from serving (on a test machine) 6 req/sec to 390 req/sec.

The biggest gain, 74 req/sec to 390 req/sec happened when he introduced data caching and another 25 req/sec where gained when he introduced the compilation of LINQ queries.

WCF Callbacks Hanging WPF Applications

I have a WPF application that communicates with a pretty basic WCF service. Whenever a callback is issued in the middle of a request, the WPF application completely hangs. It's obviously a synchronization issue, however I've gone through the forums and articles and set every imaginable attribute on every imaginable object with no successful outcome.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend