Donn,
Are you looking for your app to
pre-populate the login name (and possibly password) on your login screen?
or
automatically log-in the user?
For the latter, check the
user group webinar 263 from about 18:00 onwards.
For the former, just wizard up a new web app from scratch (you don't need a dictionary or anything complicated). For me, it automatically populates the login form (see pic). I'm guessing that's due to the call to self._ReadCookies(self.RequestData.Datastring) in the NetWebServerWorkerBase.ProcessRequest method in netweb.clw.
A bit of additional code you should add IMNSHO is to delete those cookie values should the user later clear the Remember me checkbox.
I have this embedded in the Validate::Loc:Remember routine on the login form:
do ValidateValue::Loc:Remember ! copies value to session value if valid.
! Start of "After Validate New Value"
! [Priority 5000]
!MY EMBED CODE:
if loc:remember = 0
p_web.DeleteCookie('loc__login')
p_web.DeleteCookie('loc__password')
p_web.DeleteCookie('loc__remember')
end ! if
! End of "After Validate New Value"
p_web.PushEvent('parentupdated')
do Refresh::Loc:Remember ! Field is auto-validated
do SendMessage
p_web.ntForm(loc:formname,'ready')
Hope that helps.
Jane