Here is an implementation of single sign-on from MSDN:
http://msdn.microsoft.com/en-us/library/ms972971.aspx
It utilizes database tables, you can find sample applications from the same location. Hope it helps.
Zhao Ji Ma
Sincerely,
Microsoft Online Community Support
“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”