douqiao2471 2018-01-31 22:06
浏览 43

如何使用Golang Gorilla工具箱确保用户ID在会话和安全Cookie方面的使用

I have started to look at Gorilla Toolkit for Golang but I am having some difficulty in understanding of to use sessions or securecookies? I want to produce a secure user id which I can move between server and client so I initially thought I would use sessions but I cant see how to plug securecookie into it, without securecookie the sessions just perform base64 encoding?

I am sure I have missed something but to be honest I have done a lot of Googling but the examples I have seen are typically showing how to use sessions or securecookie but not sessions which are secure? Or do I just use cookies and forget sessions?

Again sorry if I have missed something simple but I would just appreciate a point in the right direction on which of the toolkit parts are to be used together a simple example would also be very appreciated.

Many thanks in advance for your time.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大