I am using a page derived from this sample, but want the saved credentials never to expire. The only users of the site will be on work ipads that are so locked down, any other security isn't required, but the service needs to be a secure one, plus I use the saved username to filter the secure layer, so they see only their cases.
I have tried adding this
esriId.credentials.expires = 1735689600000
(the time is a date about 10 years away)
To the function that stored the data, but next day I still get challenged.