S
S
Snort2015-09-23 12:48:02
PHP
Snort, 2015-09-23 12:48:02

How to properly implement a desktop client for a web application?

There is a web application (a very simple store) and you need to write a desktop application for it. There are a couple of questions on how best to do it:

  1. What is the best way to communicate with the server. Through sockets or through api?
  2. Authorization of the client on the server. If you do it through api, then you need to generate a session key and pass it on every request, as far as it is correct and safe.

Web part in php, I want to write a client in C#.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Kovalsky, 2015-09-23
@dmitryKovalskiy

An ideal solution would probably be an API for accessing data, and on the basis of this data, you can already build a web face or desktop or mobile application.

P
Pavel Shvedov, 2015-09-23
@mmmaaak

JSON Web Token and API, implemented in any language and platform, it seems to me that it will do

P
Pavel Volintsev, 2015-09-23
@copist

1. Sockets for constant exchange, if you need to quickly receive data from the server. It can be corrected.
AJAX if data is requested as needed.
2. Use SSL and don't worry about the session key

L
Lander, 2015-09-23
@usdglander

IMHO, you need REST! :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question