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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Sharing authentication ticket between two applications

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

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!




View Complete Post


More Related Resource Links

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.

Forms Authentication shared between 2 Applications, but still getting directed to login page

  
my scenario is: Single Sign-on Within a Sub Domain (two virtual directories under the same sub domain)I've setup both sites using the same forms authentication info in my web.config. both sites have the same machine key's as well. I sign into site1. i click a link that directs to site2. site2 still redirects me to the login page, however on the login page I test HttpContext.Current.User.Identity.IsAuthenticated and it returns true. I also tested on site2's login page to pull the ticket's information and it's pulling everything. so it looks like SSO is working as far as sharing the authentication ticket, yet I cannot figure out why it still puts me on the login page? site 1: https://mysub.mydomain.com/site1/ link in site1 that directs to site2: site 1: https://mysub.mydomain.com/site2/mypage.aspx any ideas? appreciate any help someone could give.

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.  

How to get SharePoint file conent by URL from web applications with claims based authentication conf

  

Hello,

I am using next code to get SharePoint document content:

using (System.Net.WebClient objWebClient = new System.Net.WebClient())
                {                   
                    objWebClient.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
                   
                    using (System.IO.BinaryReader file = new System.IO.BinaryReader(objWebClient.OpenRead("http://machine_name:10000/Shared%20Documents/some_file.txt")))
                    {
                        //Read file stream
                &nb

Sharing Session between applications

  

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?


How to get SharePoint file content from web applications with claims based authentication configured

  

Hello,

I have custom web service developed (it is running out of sharepoint context but on the machine where sharepoint server 2010 is installed). This web service should get SharePoint file content using file URL and some specific user credentials. So in case user doesn't have access to the file some exception should be thrown. Otherwise content should be returned.

I am able to use next code:

using (System.Net.WebClient objWebClient = new System.Net.WebClient())
                {                   
                    objWebClient.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
                   
                    using (System.IO.BinaryReader file = new System.IO.BinaryReader(objWebClient.OpenRead("http://machine_name:10000/Shared%20Documents/some_file.txt")))
       

Sample: Creating Claims Providers for Forms-Based Authentication Web Applications for SharePoint 201

  
Explore the code as you learn how to create a claims provider for a Microsoft SharePoint 2010 forms-based authentication web application.

Claims Walkthrough: Creating Forms-Based Authentication for Claims-Based Web Applications Using ASP.

  
Learn how to create forms-based authentication for claims-based web applications by using ASP.NET SQL membership and role providers.

Sample: Claims Walkthrough: Creating Forms-Based Authentication for Claims-Based Web Applications Us

  
Explore the code as you learn to create forms-based authentication for claims-based web applications by using ASP.NET SQL membership and role providers.

Routing users after authentication to different sites/applications preserving the security context?

  

Hi!

We want to authenticate our users on our main site (default port 80, default.aspx, login page) and once a user successfully authenticated, we go grab a list of possible urls for that user and present it as links. Once the users clicks a link, we want to preserve the authentication context so that the app living on the chosen url does not have to re-authenticate the user.

Is something like that possible?

Is it recommended to do something like that?

Are there other ways to route users to their destination?

 

Thanks in advance, regards,

SiKo.


Login authentication using Active Directory for ASP.NET applications

  
This article explains how to authenticate the users while login into asp.net application against active directory in a simple way.

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.

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.
Categories: 
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