The easiest way to set automatic logon is from the Logon window.
Click the checkbox marked 'Log me in automatically'.
To stop logging on automatically, click the Tools menu and select Options.
In the Options window select the Automatic Logon tab.
Uncheck the checkbox marked 'Automatically log on using the following Account, User and Password'.
Click the OK button.