I have a server (not a web server but just low level tcp socket server), and I want to know how to log in securely through iphone (probably using ssl), manage session and communicate with the server(probably using aes). My idea is "use ssl to log in and exchange aes key" and "use that aes key to communicate later." Someone has any better idea? Please provide me with some sample code to do such stuffs. a web server but just low