Solved

Partial Success with Forms Authentication Single Sign On

Posted on 2011-03-11
2
575 Views
Last Modified: 2012-05-11
I have the second web app not calling up the Login.aspx page when the first web app is signed on properly, so that's progress.  (Please see attached code for web.config)

The problem I have is that when I close the first application, I need the cookie deleted so refresh calls up the login screen on the second application.  Also, the cookie nener goes away and the second web app can be started and restarted without a login.

I know the lont timeout is a factor, but I do not want to wait even one minute (the minimum) before blocking access from the second site.  Once he first site is closed I want access blocked immediately from the second site.

Any ideas?

newbieweb


<forms cookieless="UseCookies"
             loginUrl="~/Account/LogOn" 
             name=".ASPXFORMSAUTH" 
             protection="All" 
             defaultUrl="~/" 
             slidingExpiration="true" 
             timeout="50000" />

    </authentication>
    <machineKey
          validationKey="C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE"
          decryptionKey="8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F"
          validation="SHA1" />

Open in new window

0
Comment
Question by:newbieweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
agarwalrahul earned 500 total points
ID: 35114340
0
 

Author Closing Comment

by:newbieweb
ID: 35137530
Thanks.
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question