Could you please explain more about your requirement ? Do you want to change membership/identity user's password or you want to change windows account user's password ?
Local system has the highest privilege and should avoid , so the problem is the service account was not given the permissions to change/reset passwords if you are using service account with appropriate AD permissions.
Member
32 Points
458 Posts
A specified logon session does not exist. It may already have been terminated.
Jan 24, 2019 06:41 AM|pathipati|LINK
Hi,
I am using below code to reset windows password. but it is throwing below error.
A specified logon session does not exist. It may already have been terminated.
All-Star
18815 Points
3831 Posts
Re: A specified logon session does not exist. It may already have been terminated.
Jan 25, 2019 03:41 AM|Nan Yu|LINK
Hi pathipati ,
Could you please explain more about your requirement ? Do you want to change membership/identity user's password or you want to change windows account user's password ?
Best Regards,
Nan Yu
Member
32 Points
458 Posts
Re: A specified logon session does not exist. It may already have been terminated.
Jan 25, 2019 03:57 AM|pathipati|LINK
Hi, Nan Yu,
Thanks for your response.
I am looking to Reset Users Windows Password from Administration Level.
All-Star
18815 Points
3831 Posts
Re: A specified logon session does not exist. It may already have been terminated.
Jan 25, 2019 08:54 AM|Nan Yu|LINK
Hi pathipati ,
I haven't met the issue . Where do you put the codes , in global.ascx ? You can also refer to below links for code sample :
https://stackoverflow.com/a/53842740/5751404
https://stackoverflow.com/questions/38997727/changing-active-directory-user-passwords-in-c-asp-net-after-ms-patch-kb3167679
Best Regards,
Nan Yu
Member
32 Points
458 Posts
Re: A specified logon session does not exist. It may already have been terminated.
Jan 25, 2019 09:55 AM|pathipati|LINK
My above code is working when the AppPool is set to 'LocalSystem' and not 'ApplicationPoolIdentity'. is it harm to set AppPool to LocalSystem
All-Star
18815 Points
3831 Posts
Re: A specified logon session does not exist. It may already have been terminated.
Jan 29, 2019 07:17 AM|Nan Yu|LINK
Hi pathipati,
Local system has the highest privilege and should avoid , so the problem is the service account was not given the permissions to change/reset passwords if you are using service account with appropriate AD permissions.
Best Regards,
Nan Yu