I know that ambien has a weird side effect of making you forget things. I have not taken ambien in a while but today I forgot a password and some short term things like why I went to a particular place.
I am sick, and deep sleep has been rare. So I will chalk it up to lack of sleep.
Also not much exercise either doing just pushups and situps.