<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/3465562.aspx</link><pubDate>Mon, 19 Oct 2009 16:53:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3465562</guid><dc:creator>dmohr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3465562.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3465562</wfw:commentRss><description>&lt;p&gt;Nice catch!&amp;nbsp; I had been poking around on this for&amp;nbsp;the last few hours and had seen some posts suggesting updates to the global.asax but your suggestion makes perfect sense.&amp;nbsp; Obviously the @Userid is not set and as such will never match.&amp;nbsp; I just modified my proc and it works correctly now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks, &lt;/p&gt;
&lt;p&gt;Dave&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/3465558.aspx</link><pubDate>Mon, 19 Oct 2009 16:50:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3465558</guid><dc:creator>dmohr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3465558.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3465558</wfw:commentRss><description>&lt;p&gt;Nice catch!&amp;nbsp; I had been poking around on this for&amp;nbsp;the last few hours and had seen some posts suggesting updates to the global.asax but your suggestion makes perfect sense.&amp;nbsp; Obviously the @Userid is not set and as such will never match.&amp;nbsp; I just modified my proc and it works correctly now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks, &lt;/p&gt;
&lt;p&gt;Dave&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1630228.aspx</link><pubDate>Wed, 21 Mar 2007 14:14:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1630228</guid><dc:creator>AGBrown</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1630228.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1630228</wfw:commentRss><description>I haven't heard/seen anything about a patch.</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1627481.aspx</link><pubDate>Tue, 20 Mar 2007 00:22:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1627481</guid><dc:creator>rick_loseke@hotmail.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1627481.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1627481</wfw:commentRss><description>&lt;p&gt;Is there a patch for this issue? I've corrected the procedure, but it would be nice if the bug was acknowledged and patched.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I can't believe more people haven't noticed this issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Rick&lt;/p&gt;</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1368579.aspx</link><pubDate>Fri, 11 Aug 2006 17:18:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1368579</guid><dc:creator>lmaran</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1368579.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1368579</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;initialized @userId variable with&amp;nbsp;SQL SELECT command.&amp;nbsp;This works for me:&lt;/p&gt;
&lt;p&gt;CREATE PROCEDURE dbo.aspnet_Membership_GetUserByName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @ApplicationName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nvarchar(256),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @UserName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nvarchar(256),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @CurrentTimeUtc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datetime,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @UpdateLastActivity&amp;nbsp;&amp;nbsp; bit = 0&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECLARE @UserId uniqueidentifier&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (@UpdateLastActivity = 1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BEGIN&lt;/p&gt;
&lt;p&gt;-- Dadi, 11.08.2006&lt;br /&gt;-- Am adaugat eu cda 'select' de mai jos. Fara ea nu se poate executa cda&amp;nbsp; 'update' care actualizeaza LastActivityTime.&lt;br /&gt;--Pb. provine din faptul ca variabila @UserId nu era niciunde initializata&lt;/p&gt;
&lt;p&gt;&lt;font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT TOP 1 @userId=u.UserId&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp; LOWER(@ApplicationName) = a.LoweredApplicationName AND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u.ApplicationId = a.ApplicationId&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; LOWER(@UserName) = u.LoweredUserName AND u.UserId = m.UserId&lt;br /&gt;&lt;/font&gt;-------------&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT TOP 1 m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m.CreateDate, m.LastLoginDate, @CurrentTimeUtc, m.LastPasswordChangedDate,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u.UserId, m.IsLockedOut,m.LastLockoutDate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp; LOWER(@ApplicationName) = a.LoweredApplicationName AND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u.ApplicationId = a.ApplicationId&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOWER(@UserName) = u.LoweredUserName AND u.UserId = m.UserId&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (@@ROWCOUNT = 0) -- Username not found&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN -1&lt;/p&gt;
&lt;p&gt;--pt. cda 'update de m. jos vezi detaliile de mai sus&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPDATE&amp;nbsp;&amp;nbsp; dbo.aspnet_Users&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastActivityDate = @CurrentTimeUtc&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp; @UserId = UserId&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT TOP 1 m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m.CreateDate, m.LastLoginDate, u.LastActivityDate, m.LastPasswordChangedDate,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u.UserId, m.IsLockedOut,m.LastLockoutDate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp; LOWER(@ApplicationName) = a.LoweredApplicationName AND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u.ApplicationId = a.ApplicationId&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOWER(@UserName) = u.LoweredUserName AND u.UserId = m.UserId&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (@@ROWCOUNT = 0) -- Username not found&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN -1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN 0&lt;br /&gt;END&lt;br /&gt;GO&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1301731.aspx</link><pubDate>Wed, 31 May 2006 20:07:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1301731</guid><dc:creator>AGBrown</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1301731.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1301731</wfw:commentRss><description>To be clear, I have fixed this. What I want to know is why this is as it is. Is LastActivityDate actively used in the membership framework, and should this stored procedure be updating it or not? Obviously if it should then this is a problem as every new application which has the membership tables added to it by VS then needs to be fixed, or the membership tables need to be added by copying from a template database.</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1299317.aspx</link><pubDate>Mon, 29 May 2006 12:33:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1299317</guid><dc:creator>AGBrown</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1299317.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1299317</wfw:commentRss><description>&lt;p&gt;Yes, sorry, I should have been clearer on that, its the stored procedure aspnet_Membership_GetUserByName that is the problem. I'm glad that you have the same problem. &lt;/p&gt;
&lt;p&gt;Interestingly aspnet_Membership_GetUserByEmail doesn't even bother pretending that its going to update LastActivityDate,&amp;nbsp;and&amp;nbsp;aspnet_Membership_GetUserByUserId actually does the update (doesn't just pretend it will do it), so I'm becoming more confused about how this is meant to be used.&lt;/p&gt;
&lt;p&gt;I've altered my aspnet_Membership_GetUserByName stored procedure heavily now in order to get it to do the update.&lt;/p&gt;
&lt;p&gt;Is there anyone that doesn't have this version of the stored procedure (SQL pasted below)? How do we get the dev team to shed some light on this?&lt;/p&gt;
&lt;p&gt;Andy&lt;/p&gt;
&lt;p&gt;Original (framework) version of the sproc:&lt;/p&gt;&lt;font color=#0000ff size=1&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&amp;nbsp;&lt;pre class=coloredcode&gt;&lt;span class=sqlkwd&gt;ALTER PROCEDURE&lt;/span&gt; [dbo].[aspnet_Membership_GetUserByName]
    @ApplicationName      &lt;span class=sqlkwd&gt;nvarchar&lt;/span&gt;(256),
    @UserName             &lt;span class=sqlkwd&gt;nvarchar&lt;/span&gt;(256),
    @CurrentTimeUtc       &lt;span class=sqlkwd&gt;datetime&lt;/span&gt;,
    @UpdateLastActivity   &lt;span class=sqlkwd&gt;bit&lt;/span&gt; = 0
&lt;span class=sqlkwd&gt;AS
BEGIN
    DECLARE&lt;/span&gt; @UserId &lt;span class=sqlkwd&gt;uniqueidentifier

    IF&lt;/span&gt; (@UpdateLastActivity = 1)
    &lt;span class=sqlkwd&gt;BEGIN
        SELECT TOP&lt;/span&gt; 1 m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
                m.CreateDate, m.LastLoginDate, @CurrentTimeUtc, m.LastPasswordChangedDate,
                u.UserId, m.IsLockedOut,m.LastLockoutDate
        &lt;span class=sqlkwd&gt;FROM&lt;/span&gt;    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
        &lt;span class=sqlkwd&gt;WHERE&lt;/span&gt;    &lt;span class=sqlkwd2&gt;LOWER&lt;/span&gt;(@ApplicationName) = a.LoweredApplicationName &lt;span class=sqlkwd3&gt;AND&lt;/span&gt;
                u.ApplicationId = a.ApplicationId    &lt;span class=sqlkwd3&gt;AND&lt;/span&gt;
                &lt;span class=sqlkwd2&gt;LOWER&lt;/span&gt;(@UserName) = u.LoweredUserName &lt;span class=sqlkwd3&gt;AND&lt;/span&gt; u.UserId = m.UserId

        &lt;span class=sqlkwd&gt;IF&lt;/span&gt; (&lt;span class=sqlkwd2&gt;@@ROWCOUNT&lt;/span&gt; = 0) &lt;span class=sqlcmt&gt;-- Username not found
&lt;/span&gt;
            &lt;span class=sqlkwd&gt;RETURN&lt;/span&gt; -1

        &lt;font&gt;&lt;span class=sqlkwd&gt;UPDATE&lt;/span&gt;   dbo.aspnet_Users
        &lt;span class=sqlkwd&gt;SET&lt;/span&gt;      LastActivityDate = @CurrentTimeUtc
        &lt;span class=sqlkwd&gt;WHERE&lt;/span&gt;    @UserId = UserId&lt;/font&gt; &lt;font&gt;&amp;lt;!-- USER ID NEVER SET, SO THIS WILL NOT UPDATE&lt;/font&gt;
    &lt;span class=sqlkwd&gt;END
    ELSE
    BEGIN
        SELECT TOP&lt;/span&gt; 1 m.Email, m.PasswordQuestion, m.Comment, m.IsApproved,
                m.CreateDate, m.LastLoginDate, u.LastActivityDate, m.LastPasswordChangedDate,
                u.UserId, m.IsLockedOut,m.LastLockoutDate
        &lt;span class=sqlkwd&gt;FROM&lt;/span&gt;    dbo.aspnet_Applications a, dbo.aspnet_Users u, dbo.aspnet_Membership m
        &lt;span class=sqlkwd&gt;WHERE&lt;/span&gt;    &lt;span class=sqlkwd2&gt;LOWER&lt;/span&gt;(@ApplicationName) = a.LoweredApplicationName &lt;span class=sqlkwd3&gt;AND&lt;/span&gt;
                u.ApplicationId = a.ApplicationId    &lt;span class=sqlkwd3&gt;AND&lt;/span&gt;
                &lt;span class=sqlkwd2&gt;LOWER&lt;/span&gt;(@UserName) = u.LoweredUserName &lt;span class=sqlkwd3&gt;AND&lt;/span&gt; u.UserId = m.UserId

        &lt;span class=sqlkwd&gt;IF&lt;/span&gt; (&lt;span class=sqlkwd2&gt;@@ROWCOUNT&lt;/span&gt; = 0) &lt;span class=sqlcmt&gt;-- Username not found
&lt;/span&gt;
            &lt;span class=sqlkwd&gt;RETURN&lt;/span&gt; -1
    &lt;span class=sqlkwd&gt;END

    RETURN&lt;/span&gt; 0
&lt;span class=sqlkwd&gt;END&lt;/span&gt;&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1299019.aspx</link><pubDate>Mon, 29 May 2006 03:31:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1299019</guid><dc:creator>zhuhua1006</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1299019.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1299019</wfw:commentRss><description>&lt;p&gt;Sorry, I find it. It is stored procedure. &lt;img src="/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;
&lt;p&gt;Just as you said, the update statement should not work I am not sure whether it is a bug. We need dev team to clarify.&lt;/p&gt;</description></item><item><title>Re: Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1299012.aspx</link><pubDate>Mon, 29 May 2006 03:02:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1299012</guid><dc:creator>zhuhua1006</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1299012.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1299012</wfw:commentRss><description>&lt;p&gt;What is your mean about "GetUserByName" method? I could not find it anywhere.&lt;/p&gt;</description></item><item><title>Bug or intentional: aspnet_Membership_GetUserByName does not update LastActivityDate</title><link>http://forums.asp.net/thread/1297936.aspx</link><pubDate>Fri, 26 May 2006 21:59:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1297936</guid><dc:creator>AGBrown</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1297936.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1297936</wfw:commentRss><description>&lt;p&gt;I'm not sure where to post this to get a response, or how to get in touch with the MS membership team so I'll post here, and I've also put it up on &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=430091&amp;amp;SiteID=1&amp;amp;mode=1"&gt;forums.microsoft.com&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I've just begun to extend the membership framework for .NET. I've noticed 
that aspnet_Membership_GetUserByName has the potential to update 
LastActivityDate in aspnet_Users, but actually will not ever do the update. The 
"problem" (unless this is intentional) is that @UserId is never set in the 
select statement before the update statement, i.e. there is no "@UserId = 
u.UserId" in the Select.&lt;/p&gt;
&lt;p&gt;So is this a problem with my installation, is it a "bug", or is it intentional?&lt;/p&gt;
&lt;p&gt;Andy&lt;/p&gt;</description></item></channel></rss>