dynamic session expiration

Hi    in the login page i have a check ox which says "Keep me looged in for 1 week" . Please guide how can I do this..I am planning to use authlogic

Thanks Tom

See the gem restful-authentication