ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How to manage session tokens among different android/ios/windows client apps with server side php and mysql ?

user-image
تم إضافة السؤال من قبل Sibi T Mathew , Senior Web Developer , Kemuri technology
تاريخ النشر: 2013/11/16
Muhammad Javed Iqbal
من قبل Muhammad Javed Iqbal , Lead Flutter Developer (Remote/Contract) , eezly Technologies PVT ltd

You can manage easily tokens by doing following steps:-

1) When Login, Assign a token to that user from server by sending this token with user details to the client app.

2) Save this token in the application preferences.

3) Use this token whenever calling a web services from the server.

4) Server will check whether this is a valid token, If not then ask application/client side that token is invalid and get new one.

5) Then to get new token, client app will get new token from the server either by calling a web services OR by seamless login.

This is all, how we can manage tokens...

Clodelio Delfino
من قبل Clodelio Delfino , Managing Consultant , Startup Company

Web Service using JSON, we had an application that runs in IOS, Android and Typical Web App that each of those platform communicate using web service where tokens via JSON data are pass from one to the other.

المزيد من الأسئلة المماثلة