If you don't have an account, you should register one.
The login process uses cookies. If the "Persistent login" checkbox is checked, the cookie will be stored persistently in your browser.
If the "Persistent login" checkbox is not checked (default), AsmBB uses so called "session cookies" that are automatically removed when you close your browser.
When you logout from the forum, all cookies are removed as well.