
|
email this FAQ to a colleague
Q:
VerifyPassword method in the VerifyUsr class does not recognise the new
password set in the membership directory until about 5 minutes or so.
How do I fix it?
A:
This is a broker cache issue. You'll need to issue a recent changes
cookie.This is how we set the password in the component:
Set oCurrentUser = ADSGetObject(sADsPath)
oCurrentUser.Put "userPassword", CStr(NewPassword)
oCurrentUser.SetInfo
The asp code that calls the component code listed above required us to
reissue the cookie that authentication service pushes down to the
client.
Here's what we added to the asp code:
Set IVerif = Server.CreateObject("Membership.VerifUsr.1")
IVerif.IssueRecentChangesCookie(UserName)
This fixed our problem.
- Alan Stuart
|