IsOnline not showing ME

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,123
Messages
2,570,736
Members
47,289
Latest member
KathrynSta

Latest Threads

Top