IsOnline not showing ME

  • Thread starter Thread starter coder316
  • Start date Start date
C

coder316

Hello,
I am outputting all the properties of the MembershipUser object to a
Datagrid.
Everything seems to be ok, except it doesnt show the users (Only
myself rightnow) as being Online.(false)
I used a login control to set my cookie, but I dont think that
matters.
Any help?
Thanks
 
Hello,
I am outputting all the properties of the MembershipUser object to a
Datagrid.
Everything seems to be ok, except it doesnt show the users (Only
myself rightnow) as being Online.(false)
I used a login control to set my cookie, but I dont think that
matters.
Any help?
Thanks

As per MSDN "A user is considered online if the current date and time
minus the UserIsOnlineTimeWindow property value is earlier than the
LastActivityDate for the user. The LastActivityDate for a user is
updated to the current date and time by the CreateUser, UpdateUser and
ValidateUser methods, and can be updated by some of the overloads of
the GetUser method."

So, try to check if LastActivityDate is updated. Maybe you need
explicitly set it

http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.isonline.aspx
 
Back
Top