How to do "Remember me" or "keep me logged in"

How to do "Remember me" or "keep me logged in"

Hello,

I need some propositions to do the "keep me logged in" in my mobile application like "facebook application" or games applications etc..

Share with me the method with details if it's possible.I can do my own solution, but this is very common so i prefer to use the method of the professionals ;)

Thank you experts in advance for help and don't forget i'm new to jQuery and i'm trying to develop my first mobile application 

best regards