How do you store data server side that is specific to a client in Meteor?

后端 未结 6 810
陌清茗
陌清茗 2021-02-13 02:15

Express implements a server side session object that lets you store data specific to a client. How would you do the equivalent in Meteor?

strack recommended using a coll

6条回答
  •  梦毁少年i
    2021-02-13 03:11

    I think that's what the Session is for in meteor-- To store information needed on the client side.

    If you need to pass something to the server, maybe put it in a Meteor collection?:

    Cookies = new Meteor.collection("cookies")
    

    Otherwise, just use Session.

提交回复
热议问题