<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Forms authentication failed for the request. Reason: The ticket supplied was invalid.</title>
	<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/</link>
	<description></description>
	<pubDate>Sat, 19 May 2012 23:30:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: gkayton</title>
		<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-48157</link>
		<pubDate>Wed, 17 Mar 2010 09:32:51 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-48157</guid>
					<description>What fix the problem for me was the following. I was double authenticating users. Once I removed the commented line below I stopped getting the error. Farm or no Farm.

If System.Web.Security.Membership.ValidateUser(_txtUsername.Text, _txtPassword.Text) Then
 '*** Remove Line  FormsAuthentication.Authenticate(_txtUsername.Text, _txtPassword.Text)
    If _chkRemember.Checked Then
           FormsAuthentication.RedirectFromLoginPage(_txtUsername.Text, True)
    Else
           FormsAuthentication.RedirectFromLoginPage(_txtUsername.Text, False)
    End If

Removed this line:
FormsAuthentication.Authenticate(_txtUsername.Text, _txtPassword.Text)</description>
		<content:encoded><![CDATA[<p>What fix the problem for me was the following. I was double authenticating users. Once I removed the commented line below I stopped getting the error. Farm or no Farm.</p>
<p>If System.Web.Security.Membership.ValidateUser(_txtUsername.Text, _txtPassword.Text) Then<br />
 &#8216;*** Remove Line  FormsAuthentication.Authenticate(_txtUsername.Text, _txtPassword.Text)<br />
    If _chkRemember.Checked Then<br />
           FormsAuthentication.RedirectFromLoginPage(_txtUsername.Text, True)<br />
    Else<br />
           FormsAuthentication.RedirectFromLoginPage(_txtUsername.Text, False)<br />
    End If</p>
<p>Removed this line:<br />
FormsAuthentication.Authenticate(_txtUsername.Text, _txtPassword.Text)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: hippy</title>
		<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-45702</link>
		<pubDate>Mon, 18 Jan 2010 12:27:24 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-45702</guid>
					<description>Hi, 

So to clarify, is slidingExpiration supposed to be set to true on both ASP1.1 and ASP2.0 configs or is it supposed to be left as the defaults (true in 1.1, false in 2.0)??

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>So to clarify, is slidingExpiration supposed to be set to true on both ASP1.1 and ASP2.0 configs or is it supposed to be left as the defaults (true in 1.1, false in 2.0)??</p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Vesy</title>
		<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-19325</link>
		<pubDate>Tue, 28 Oct 2008 02:39:50 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-19325</guid>
					<description>Hi Werutz,

Unfortunately I'm not using Oracle and cannot recommend you any learning resources.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi Werutz,</p>
<p>Unfortunately I&#8217;m not using Oracle and cannot recommend you any learning resources.</p>
<p>Cheers
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: werutzb</title>
		<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-18380</link>
		<pubDate>Tue, 07 Oct 2008 20:44:56 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-18380</guid>
					<description>Hi!

I would like improve my SQL knowledge.
 I red that many SQL books and want to
read more about SQL for my position as oracle database manager.

 What would you recommend?

Thanks,
Werutz</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I would like improve my SQL knowledge.<br />
 I red that many SQL books and want to<br />
read more about SQL for my position as oracle database manager.</p>
<p> What would you recommend?</p>
<p>Thanks,<br />
Werutz
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Idetrorce</title>
		<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-7974</link>
		<pubDate>Sat, 15 Dec 2007 13:44:45 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-7974</guid>
					<description>very interesting, but I don't agree with you 
Idetrorce</description>
		<content:encoded><![CDATA[<p>very interesting, but I don&#8217;t agree with you<br />
Idetrorce
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Vesy</title>
		<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-3</link>
		<pubDate>Sun, 10 Dec 2006 19:55:11 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-3</guid>
					<description>Thanks for your solution, Alexander. It is undoubtedly the easier one. 

According to the MSDN:

&quot;slidingExpiration is set to 'true' to enforce a sliding session lifetime. This means that the timeout is reset after each request to your application.&quot;
(&lt;a href=&quot;http://msdn2.microsoft.com/en-US/library/ms998347.aspx&quot;&gt;http://msdn2.microsoft.com/en-US/library/ms998347.aspx&lt;/a&gt;)

I haven't checked it across the servers but I think it should work without problems.</description>
		<content:encoded><![CDATA[<p>Thanks for your solution, Alexander. It is undoubtedly the easier one. </p>
<p>According to the MSDN:</p>
<p>&#8220;slidingExpiration is set to &#8216;true&#8217; to enforce a sliding session lifetime. This means that the timeout is reset after each request to your application.&#8221;<br />
(<a href="http://msdn2.microsoft.com/en-US/library/ms998347.aspx"><a href='http://msdn2.microsoft.com/en-US/library/ms998347.aspx' rel='nofollow'>http://msdn2.microsoft.com/en-US/library/ms998347.aspx</a></a>)</p>
<p>I haven&#8217;t checked it across the servers but I think it should work without problems.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alexander Yakovlev</title>
		<link>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-2</link>
		<pubDate>Tue, 05 Dec 2006 08:35:37 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-was-invalid/#comment-2</guid>
					<description>The problem is in difference in default values for &lt;em&gt;slidingExpiration&lt;/em&gt; property in forms tag.

&lt;strong&gt;Important!&lt;/strong&gt;

For ASP.NET 1.1. &lt;em&gt;slidingExpiration = true&lt;/em&gt; by default

whereas

For ASP.NET 2.0 &lt;em&gt;slidingExpiration = false&lt;/em&gt; by default</description>
		<content:encoded><![CDATA[<p>The problem is in difference in default values for <em>slidingExpiration</em> property in forms tag.</p>
<p><strong>Important!</strong></p>
<p>For ASP.NET 1.1. <em>slidingExpiration = true</em> by default</p>
<p>whereas</p>
<p>For ASP.NET 2.0 <em>slidingExpiration = false</em> by default
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

