Saturday, December 17, 2011

Titanium Appcelerator Remember me

http://developer.appcelerator.com/question/117952/remember-me--session-implementation


Ti.App.Properties.setString('login_name','kamal');
my_property_value = Ti.App.Properties.getString('login_name');

If it's never been set before it will naturally return undefined.
You can also set booleans, integers, lists and doubles. See : http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.App.Properties-module
hope this helps! ;)
As commented, hopefully your app is posting the login to the server securely. If you don't have https, there are some cunning ways to use MD5 to create a 'challenge and response' pair of hashes on login (etc.) which is pretty secure.




No comments:

Post a Comment