i am making a simple client in vb, but the language really doesn't matter.
i connect to my web server, get the results and then display the raw data in a text box on the application. my scripts used for the client application return only text, so HTML formating isn't neccessary.
HTTP is stateless, but i want the client app to maintain state securely.
here is a simple solution:
have a login box on the application that then gets the users ID via HTTP GET if the passwords match. then on every subsequent request from the server, put the ID and other info in a GET string and request it from the server.
that solution is INSANELY insecure, but it encompasses what i want to do.
so you understand what i want to do, here is an example. lets say i have a checking account and a savings account on this server (don't freak out, i'm not doing this for a bank... your money is safe) 🙂 anyways, the users would log in, and the server might respond with the persons id and current balances. so the client app shows the balances... now the user wants to transfer 500 from savings to checking. i can check on client side now whether the funds are sufficient before sending to the server. ok, so we checked and they have enough money... so we somehow send the person id, and the desired transaction. the server double checks the balances to make sure everything is ok, and then updates its records, and responds with the new balances.
WHY AM I USING A WEB SERVER TO DO THIS AND NOT A CUSTOM SERVER? i want users to be able to do the same transaction securely on a web site (which already works), but with a client app, i could save a TON of bandwidth (because the client app renders all the pages and doesn't need all the HTML formatting) and i could also add a lot of cool features not available to HTML, Javascript or flash. plus it would be faster for the end user.
if no one has done anything like this yet, i think it would be a VERY good application.
help me out!