会话和php中的cookie有什么区别? [英] What is difference between session and cookie in php?

查看:80
本文介绍了会话和php中的cookie有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道php sessioncookie

推荐答案

主要区别在于会话数据存储在服务器上,而cookie数据存储在客户端上.因此,客户端可以轻松地修改cookie的内容,但是必须更加努力地修改会话的内容.

The main difference being that session data is stored on the server, while cookie data is stored on the client. Therefore, a client can easily modify the cookie contents, but will have to work way harder to modify the session contents.

这篇关于会话和php中的cookie有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆