ActionScript Login System Feature

Hello All, I want to implement a “Remember Me” feature on my website by clicking radio button or combobox component. Basically, I have a login system. I want the option for a user not login every time they visits my website by clicking on a remember me.When an user performs the login with even if he logs out I want to keep him logged in on my website. He will only log out if he clicks on the logout button on the website.
Is there a way to do this I know it must be complex?
Thanks in advance