How to set random cookie value using rand function in PHP

前端 未结 3 822
情深已故
情深已故 2021-01-24 19:16

How to set random cookie value using rand function in PHP

I don\'t want to change the value while page refreshed when it once assigned.. until cookie destroy

My

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-24 19:53

    Your set cookie code is incorrect and the cookie time is only 1 second

    change your code as follows...

    "; 
    }
    exit();  
    ?> 
    

提交回复
热议问题