Safari stopped remembering what is usually stored in cookies. What might have happened?
Saved forms and cookies are not the same thing. Cookies (for example) keep you logged in to a website, instead of having to re-log-in every time you visit. Saved forms are Safari's way of keeping text in a login form, so when you are logged out you don't need to enter your credentials again.

It sounds like you're talking about saved forms. To make sure this is working, go to Safari > Preferences > AutoFill and make sure "User names and passwords" is checked.