You have fifteen minutes to enter the security code, when logging in.  After that you will have to request a new code.  You can do this by either logging in again or click the link to request a new code.