How to set a session variable when clicking a link

后端 未结 4 1714
不知归路
不知归路 2020-12-24 08:40

I have the following problem... I want to set a session variable when clicking on a normal link like:

home
         


        
4条回答
  •  滥情空心
    2020-12-24 08:59

    Is your link to another web page? If so, perhaps you could put the variable in the query string and set the session variable when the page being linked to is loaded.

    So the link looks like this:

    home
    

    And the homge page would parse the query string and set the session variable.

提交回复
热议问题