Hello,
Even thought I have my web.config set like this:
<authentication mode="Forms">
<forms loginUrl="my_url_here" protection="All" timeout="100" />
</authentication>
... and even though at this help file:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconaspnetarchitecture.htm
... it confirms that the timeout attribute is in minutes:
<authentication mode="[Windows|Forms|Passport|None]">
<forms name="[name]"
timeout="[minutes]">
</forms>
</authentication>
.... my app session times out after just a few minutes. I see this because it keeps sending me through the auto-logon routine.
I tried setting the IE security settings higher (to prompt for first and thrid-party cookies being set) and I tried checking and unchecking the checkbox that says "Always allow session cookies". I no case does it prompt me when the FormsAuthentication.SetAuthCookie() is called. I also deleted everything from "Temporary Internet Files" and watched as I logged in, then refreshed that dir and no cookies show up there.
I also did this:
---------------------------------
private void Page_Load(object sender, System.EventArgs e)
{
testLabel.Text = FormsAuthentication.FormsCookiePath + FormsAuthentication.FormsCookieName;
}
---------------------------------
... and here is what it output:
/.ASPXAUTH
I searched for .ASPXAUTH and it is nowhere on my C drive.
---------------------------------
I set my web.config:
<authentication mode="Forms">
<forms loginUrl="Includes/Login.aspx" protection="All" timeout="10000" />
</authentication>
.. to 10000 which should translate to 166+ hours if it is doing what it is supposed to, and if it is reading seconds, then it would be 166+ minutes.
---------------------------------
Does anyone have any thoughts on why this might happen and how I might be able to fix it?
Also, does anyone you know how can I see what the SetAuthCookie() cookie is being set to for time?
tx,
k
Even thought I have my web.config set like this:
<authentication mode="Forms">
<forms loginUrl="my_url_here" protection="All" timeout="100" />
</authentication>
... and even though at this help file:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconaspnetarchitecture.htm
... it confirms that the timeout attribute is in minutes:
<authentication mode="[Windows|Forms|Passport|None]">
<forms name="[name]"
timeout="[minutes]">
</forms>
</authentication>
.... my app session times out after just a few minutes. I see this because it keeps sending me through the auto-logon routine.
I tried setting the IE security settings higher (to prompt for first and thrid-party cookies being set) and I tried checking and unchecking the checkbox that says "Always allow session cookies". I no case does it prompt me when the FormsAuthentication.SetAuthCookie() is called. I also deleted everything from "Temporary Internet Files" and watched as I logged in, then refreshed that dir and no cookies show up there.
I also did this:
---------------------------------
private void Page_Load(object sender, System.EventArgs e)
{
testLabel.Text = FormsAuthentication.FormsCookiePath + FormsAuthentication.FormsCookieName;
}
---------------------------------
... and here is what it output:
/.ASPXAUTH
I searched for .ASPXAUTH and it is nowhere on my C drive.
---------------------------------
I set my web.config:
<authentication mode="Forms">
<forms loginUrl="Includes/Login.aspx" protection="All" timeout="10000" />
</authentication>
.. to 10000 which should translate to 166+ hours if it is doing what it is supposed to, and if it is reading seconds, then it would be 166+ minutes.
---------------------------------
Does anyone have any thoughts on why this might happen and how I might be able to fix it?
Also, does anyone you know how can I see what the SetAuthCookie() cookie is being set to for time?
tx,
k