02-14-2011 01:46 PM
my client wants their app to be able to connect to an online database. It would be a deal breaker if the user would need to login in everytime they want to submit info. Is it possible to do a one-time login(or infrequent)? I've looked through this site and found a possible solution using the Blackberry Enterprise server but that's not possible in this case. any suggestions?
02-14-2011 07:06 PM
Can you describe what you mean by "online database"? For instance, is the authentication an HTTP request? If so does it save session details in a client side cookie? Also, how are your users connecting to this service (through the browser, or via a client application)?
As an example, if you save an encrypted key in a cookie when the user signs into the "online db" using the browser during the first successful attempt, you can auto authenticate that user when they return to your site.
Knowing this info will better help the folks on this board answer your question.
02-14-2011 09:06 PM
thanks for the response. As of right now, all I know is that the login will happen through the browser. The database will be an sql database of some sort. I'll research the other things you brought up. I'm pretty new to development(and my client knows this) so i'll have to be learning some of this along the way.
02-15-2011 09:33 AM
From your login request you can establish a server side session id based on the user name and password that is stored with their user information.
You can then store that session id on the browser using a cookie for that website. On each subsequent request to your web server the cookie will be sent that can then be authenticated against the session id stored on the server.