views:

39

answers:

2

I have an ASP.NET website configured with

<authentication mode="Forms">
    <forms loginUrl="Login.aspx" timeout="10080">
    </forms>
</authentication>

and a WinForm app using Client Application Services for login. How can I find the "timeout" parameter from the WinForm app?

A: 

I can't remember if the cookie that ASP.NET sets as part of forms authentication has it's expiration date set to conicide with the actual session inactivity expiration, but if so, I believe this will be your only way to find out: have your client app subtract the current dateTime from the cookie's expiration date.

Josh Pearce