Giter Site home page Giter Site logo

Comments (3)

shiyutim avatar shiyutim commented on August 23, 2024

目前cookie过期有两种,一种是过期是需要重新登录,另外一种是周期的过期,重新进入页面获取一次即可。如果是周期的更新目前需要找到如何前端更新,那么就比较好办了。目前如果要判断是否过期只能周期的轮训接口判断,我觉得不是上上策。尽量在要抢票一个小时之前去定时,那样基本cookie不会过期。

from tickets.

JJUNLANG avatar JJUNLANG commented on August 23, 2024

主要是我每次刷新页面,cookie就会变化,有时候获取了输进去也说过期,这样不好知道自己输对了没有

from tickets.

shiyutim avatar shiyutim commented on August 23, 2024

获取cookie 尽量在商品详情页的接口获取。我在开发的时候印象里刷新页面好像自己使用的也不会过期。

from tickets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.