agentwalker
Programmer
i'm using the membership class to create a new use like so
Membership.CreateUser(username,password);
All this is working fine however once it creates the user it setting there online status to true. SO on another page the new user is showing up as online.
Any ideas how I can stop it from making the user appear online directly after being created ?
Had a google the only thing I can find is a suggestion to set the userIsOnlineTimeWindow to something like 20 in the web.config then after crating the user set there 'LastLoginbDate' to -20. However this doesn't appear to be logging the user out.
I've checked the database and the loginDate is getting set back 20 mins and the userIsOnlineTimeWindow is set to 20 so not sure.
Any sugestions ?
Membership.CreateUser(username,password);
All this is working fine however once it creates the user it setting there online status to true. SO on another page the new user is showing up as online.
Any ideas how I can stop it from making the user appear online directly after being created ?
Had a google the only thing I can find is a suggestion to set the userIsOnlineTimeWindow to something like 20 in the web.config then after crating the user set there 'LastLoginbDate' to -20. However this doesn't appear to be logging the user out.
I've checked the database and the loginDate is getting set back 20 mins and the userIsOnlineTimeWindow is set to 20 so not sure.
Any sugestions ?