[英]how to know which user has logged in to my ios app
I am new to coding for the iphone. 我是iPhone编码的新手。 I have coded a lsogin page which communicates with my server and checks if the user exists and logs them in if the uername and password are correct.
我已经编写了一个lsogin页面,该页面与我的服务器通信,并检查用户是否存在,并在用户名和密码正确的情况下登录他们。
But how do i know which user has logged in so i know which user profile to retrieve? 但是我怎么知道哪个用户已经登录,所以我知道要检索哪个用户资料?
Does anyone know any good tutorials or documentation on this please. 有谁知道关于此的任何好的教程或文档。
You can store any value you get back from the server on the device using several methods. 您可以使用多种方法在设备上存储从服务器获取的任何值。 Two that come to mind are.
我想到了两个。
I think you should look into proper user session tracking on the iPhone since lack of knowledge here can lead to security holes. 我认为您应该考虑在iPhone上进行适当的用户会话跟踪,因为此处知识不足会导致安全漏洞。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.