Best Practices for Passing Data Between Pages

后端 未结 6 885
南旧
南旧 2020-12-22 16:10

The Problem

In the stack that we re-use between projects, we are putting a little bit too much data in the session for passing data between pages. T

6条回答
  •  青春惊慌失措
    2020-12-22 16:29

    After going through all the above scenarios and answers and this link Data pasing methods My final advice would be :

    COOKIES for:

    • ENCRYPT[userId's]
    • ENCRYPT[productId]
    • ENCRYPT[xyzIds..]
    • ENCRYPT[etc..]

    DATABASE for:

    • datasets BY COOKIE ID
    • datatables BY COOKIE ID
    • all other large chunks BY COOKIE ID

    My advise also depends on the below statistics and this link details Data pasing methods :

    enter image description here

提交回复
热议问题