Access web storage from server side - possible?

こ雲淡風輕ζ 提交于 2019-12-05 01:18:49

No, that's not possible. sessionStorage lives on the client. If you want to access it on the server you will have to write javascript that reads the value, puts it in a hidden field so that it is sent to the server. Or javascript that will read the value from the storage and redirect to the server passing it as query string parameter. There's absolutely no way for the server accessing directly this storage. That's one of the drawbacks of sessionStorage vs cookies.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!