Questions about login -- session duration and login modes

Hi there – I’m using CCODK with some surveyors who will be in the field
with intermittent connectivity for several days or weeks at a time. I’d
like them be able to use the app whether or not they’re connected. It
seems that when the user login mode is set to “normal,” the server is
checked with each login attempt. I’m testing the “auto-login” mode and
credentials seem to be cached locally to the device, allowing people to
login when there is no connectivity. Do I have all that right…?

Is there a way to disable logins? Is there a way to control the session
duration? Thanks!

Matt

Matt,

No matter how the user login mode is configured, CommCare ODK should allow
you to log in locally and use the app without needing a network connection
once you’ve logged in online once.

The app will still make an attempt to log in roughly once a day if
configured to (the server mode, tether v. push only). In CommCare 2.0 and
2.1 this is reflected by the checkbox on the home screen. If the login
attempt fails, the app should now let you log in normally by making that
checkbox un-checkable. If it doesn’t, you can try closing CommCare and
restarting it.

In CommCare 2.2 (hopefully being released in the next couple of days), this
confusing workflow has been redone. When the app auto-syncs it does so
after the login, so logging in and syncing aren’t part of a
confusing/paired workflow. If the sync fails, you are logged in as usual.

I don’t think the user login mode should actually be affecting the login
style on ccodk. That setting is actually for j2me phones.

Unfortunately in CCODK there’s no way to disable logins, since we need user
credentials to build the encryption keys for the storage. This is something
we might be able to address in an upcoming version.

-Clayton

··· On Tue, Nov 6, 2012 at 8:53 AM, Matt Ball wrote:

Hi there – I’m using CCODK with some surveyors who will be in the field
with intermittent connectivity for several days or weeks at a time. I’d
like them be able to use the app whether or not they’re connected. It
seems that when the user login mode is set to “normal,” the server is
checked with each login attempt. I’m testing the “auto-login” mode and
credentials seem to be cached locally to the device, allowing people to
login when there is no connectivity. Do I have all that right…?

Is there a way to disable logins? Is there a way to control the session
duration? Thanks!

Matt