Solved

Partial Success with Forms Authentication Single Sign On

Posted on 2011-03-11
2
571 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now