php中怎样设置cookie?

2024-10-13 21:24:16

1、首先打开php的编辑器。

php中怎样设置cookie?

3、新建一个函数。

php中怎样设置cookie?

5、设置第一个参数,第一个参数是cookie的名称。

php中怎样设置cookie?

7、设置cookie的第三个参数,就是cookie的过期时间。

php中怎样设置cookie?
猜你喜欢