Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8467005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:31:00+00:00 2026-06-10T15:31:00+00:00

I am creating a single page application (SPA) with ASP.Net MVC3 and ADFS (using

  • 0

I am creating a single page application (SPA) with ASP.Net MVC3 and ADFS (using passive federation). Everything is working as expected with the exception of what I will call “re-authentication from ADFS”. Periodically (less than 30 minutes), the website will attempt to re-authenticate the user with the STS. This would be fine, however the web application is built as a single page aplication so we never reload the page once it is loaded. Furthermore, the reauthentication request often occurs during an ajax call.

ADFS has the default settings for WebSSOLifetime and TokenLifetime.

Is there a way to either: a)Re-authenticate the user silently in the background from the javascript (perhaps with creative use of CORS and/or JSONP)? or b) Extend the time between re-authentication requests? or c) something else.

Regarding b) it seems like I can set persistentCookiesOnPassiveRedirects=”true” and then inside the cookieHandler set the persistentSessionLifetime to a desired value.

<wsFederation persistentCookiesOnPassiveRedirects="true" passiveRedirectEnabled="true" issuer="xxx" realm="yyy" requireHttps="true" />
    <cookieHandler requireSsl="true" persistentSessionLifetime="0.8:0:0" path="/" />

However, I’d prefer to not use persistent cookies.

Lastly, I have played with the Freshness setting described here: How to set the timeout properly when federating with the ADFS 2.0 without success.

Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:31:02+00:00Added an answer on June 10, 2026 at 3:31 pm

    Regarding b), the setting you want is the Token Lifetime. You can update this value using the Set-AdfsRelyingPartyTrust PowerShell script:

    Set-AdfsRelyingPartyTrust -TargetName "My App" -TokenLifetime 120
    

    The value for token lifetime is in minutes. The default value (0) for AD FS 2.0 is 60 minutes.

    As for a), the only method I know of is to catch the exception that is thrown by the ajax call and refresh your single page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a Windows Mobile 6 application using MFC Single Document Interface with CFormView
I am developing an application. I am creating the Universal Application using the Single
I'm working in an ASP.NET (VB) Web Application with Windows/Active Directory Authentication I am
I'm working on my first ASP.NET MVC 3 application and I've got two Controllers
I am creating a web application using EJBs and servlets. I have a page
I am working on single-page AngularJS application that doesn't have any backend but use
I'm creating a system using ASP.NET MVC for filling out online job applications. It's
I'm working on a single page webapp. I'm doing the rendering by directly creating
I'm creating a search page for my application and its using MongoDB. So I
I am creating an application that requires a single row of data to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.