Check if HTML5 sessionStorage value exists with PHP (like with cookies)

后端 未结 4 1388
无人及你
无人及你 2021-01-18 07:08

With PHP it\'s possible to check if a cookie exists. Is there a similar way to check if a HTML5 sessionStorage (webstorage) item exists?

4条回答
  •  北海茫月
    2021-01-18 07:55

    This worked.

    HTML side:

    
    
    

    PHP side:

    echo $_REQUEST['var'];
    

提交回复
热议问题