Keeping a user logged into website

Hello,

I was wondering does anyone have on their site the option to keep the web visitor logged in ?  I am thinking this would be accomplished by just having the cookie with the session id not expire.    If you have done this may I ask what technique you used?

Thanks in Advance,

Jon