1. After providing a login screen for the user and if the user is successfully authenticated against a remote web application what is the recommended approach to store the login information on the TV which can be used to auto login the user next time they use the widget. Is the standard cookie the best thing to use or use one of the persistent storage features of the frame work (app config / current app data / profile data) ?
I would use either currentAppConfig or currentAppData. I would not use currentProfileData as data stored in that object
could be overwritten by another widget in the profile if it used the same key.
I wouldn't send anything in a cookie as that's completely insecure.
2. This might be a generic question and not specific to WDK, in general what is the best practice in persisting login related information - should it be just a unique ID, or the username / password itself or something else?
If you have control over the development server, I would used token-based authentication. If not, I'd store the username/password in persistent storage.