且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Sharepoint:FBA超时

更新时间:2023-12-04 10:26:46

sts = Get-SPSecurityTokenServiceConfig


sts.WindowsTokenLifetime =(New-TimeSpan -Minutes 10)

sts.FormsTokenLifetime =(New-TimeSpan -Minutes 10)


I need to have different timeouts for my Web Applications in FBA (Form Basic Autentication)

I tried this script in POWERSHELL:

$sts = Get-SPSecurityTokenServiceConfig
$sts.WindowsTokenLifetime = (New-TimeSpan -Minutes 10)
$sts.FormsTokenLifetime = (New-TimeSpan -Minutes 10)
$sts.Update()
iisreset



But it did not work because it was a standard timeout for all my web applications and I need to use like 10s for one, 20s for the other and so on.


I also tried this script in WEB CONFIG (.net) but it did not work at all

<httpRuntime executionTimeout="10″ maxRequestLength="2097151″ />
<forms timeout="1" defaultUrl="www.myhompage"/>
<sessionState timeout="1"  />




Does anybody have a clue?

sts = Get-SPSecurityTokenServiceConfig


sts.WindowsTokenLifetime = (New-TimeSpan -Minutes 10)


sts.FormsTokenLifetime = (New-TimeSpan -Minutes 10)