How can you recover a lost password?

When I was studying Networking I was taught that it is possible to retrieve saved website passwords and login details from your computer But I have forgotten How to do it with windows XP. Now I have lost login details and I need to retrieve them but do not remember how to get them. Please can anyone tell me how I could retrieve my details because it is very urgent?

The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.