PHP中的会话和Cookie之间有什么区别? [英] What is the difference between Sessions and Cookies in PHP?

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

问题描述

PHP中会话 Cookie 之间的区别是什么?

What is the distinction between Sessions and Cookies in PHP?

推荐答案

一个会话是存储在服务器上的数据的集合, (通常是通过包含ID代码的Cookie)

A session is a collection of data stored on the server and associated with a given user (usually via a cookie containing an id code)

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

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