About session and Token

Source: Internet
Author: User
Recent projects are full-platform and need to be done backstage for the mobile side, with many changes, such as using tokens instead of session.   At first I could not understand why not the session, read a lot of articles to be sure to understand. For example, in iOS, cookie authentication is cumbersome for iOS, for example, some interfaces do not require verification, or can not be verified, with a cookie will automatically send the past, the need to manually clear the cookie, and then add, but with token is better control return is not hair, After all, it is a GET or post parameter it is another trouble is the cookie in the app closed after the switch will be reset, this time need to do a lot of cache work, more headaches, as token directly exist keychain inside, each time to use the convenience of reading

About session and Token

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.