icemanpro
V2EX  ›  问与答

为什么同源情况下,用$.getJSON 访问,还是会得到不同的 session id?

  •  
  •   icemanpro · Mar 21, 2016 · 1802 views
    This topic created in 3730 days ago, the information mentioned may be changed or developed.
    http://aa.bb.com/a/b 这个网址中,用$.getJSON 访问 htpp://aa.bb.com/c/d 这个地址,每次后台得到的 session id 不一样,这是怎么回事?
    1 replies    2016-03-21 12:16:07 +08:00
    3dwelcome
        1
    3dwelcome  
       Mar 21, 2016
    为了安全,大部分时候 session id 过期后就无效了,你如果同源 session id 不变,那就用户登录后,不久永远不会过期了。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2830 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 427ms · UTC 09:02 · PVG 17:02 · LAX 02:02 · JFK 05:02
    ♥ Do have faith in what you're doing.