How to keep user logged in

Hi Guys, I am trying to improve my plugin facebook connect and was thinking to implement a feature that user will remain logged in even after they close their browser.

In the current plugin if a user logged in via facebook connect and then close the browser the session get destroyed and the user has to login again. Is there any way that I can retain the session just like if i clicked remember me while making a normal login into elgg.