㿪֪ʶ ַ Ϸ С˵ ͼ Ʊ Ů Ц | Ķ ͼ China
TxTС˵Ķ
Ķ,С˵,ŵѧ
ͼƬ
ͼƬ,Ůͼ
ಥƵŮֱ
,Ӱ,Ůֱ,ѸԴ
һ
һ,ϵͳ
vbs/VBScript DOS/BAT hta htc python perl Ϸ VBA Զ̽ű ColdFusion rubyר
autoit seraphzone PowerShell linux shell Lua Golang Erlang ̳ CSS/HTML/Xhtml
html5 CSS XML/XSLT Dreamweaver̳ ԰ Android
վѶ .NET ASP.NET C# WinForm Silverlight WCF CLR WPF XNA VisualStudio ASP.NET-MVC .NETؼ EntityFramework WinRT-Metro Java C++ PHP Delphi Python Ruby C Erlang Go Swift Scala R Verilog ܹ ģʽ Html-Css JavaScript jQuery HTML5 SharePoint GIS SAP OracleERP DynamicsCRM K2 BPM Ϣȫ ҵϢ Android iOS WindowsPhone WindowsMobile ֻ ݿ Ŀ SQLServer Oracle MySQL NoSQL ݿ Windows7 WindowsServer Linux
  IT֪ʶ -> PHP -> ΪʲôҪˢһ²ܻȡcookie -> Ķ
 

[PHP]ΪʲôҪˢһ²ܻȡcookie

ΪʲôҪˢһ²ܻȡcookie ȱд¼򵥵Ĵ룺

<?php 
    setcookie('a','value');
    print $_COOKIE['a'];

һηʱ

ԭ$_COOKIE['a']ֵڡ
ڶηʣ

ʣΪʲôһηʵʱ򣬻ûcookieأҲãٻȡ𣿣
ʹfirefoxfirebug鿴”“

ͻˣ
Կͻˣһ󣬷ʱͷϢд˸ֲ߷ҪʲôıAcceptʲôʽAccept-EncodingʲôԣAccept-LanguageȵȣȻCookieҲ˷Cookie
ˣ
һsetcookie('a','value')
Ϊcookieڿͻ˵ģsetcookieԼcookieֻͨͷϢķʽ˵ֵܣҪһcookieΪaֵΪvalueһ¡ҲΪ”޽ˣһС“
ڶ$_COOKIE['a']
$_COOKIE['a']ܼ򵥣ִеIJcookieַΪacookieֵ

ԣ”Ϊa“cookieҵΪͻ˷ʷʱcookieѹͲڣǰһcookieͷϢҲûзظͻˣphpҪϵ°ִŻ᷵ظͻˣ
Ϣ
УصͷϢд”Set-Cookie a=value“յͷϢcookieŵԵijļУڲͬcookieĴλòƲͬڱĵķΧ

ˢٴηʷʱͬҲѺܶͷϢֻδȥcookieУͶһa=valueˡ$_COOKIE['a']ȻܴcookieַҵΪacookieֵ

Ϊ֪ʼ(Wiz)
  PHP
PHPбԵŻ
cakephpɺôرcakeʶ
php sessionʹredisȺ
cakephpôĬʾindex/indexļ
PHPôѡѧʺѧϰ
php ص
PHPѧϰʼ:һ԰
PHPinclude()require()˵
ʹ Array2XMLתXMLʽͬ
PHPں()ϣԼPHPĹϣ
һƪ      һƪ     
:2015-03-30 02:23:50  :2017-05-15 14:18:30 
 
Ƶ: վѶ .NET ASP.NET C# WinForm Silverlight WCF CLR WPF XNA Visual Studio ASP.NET MVC .NETؼ Entity Framework WinRT/Metro Java C++ PHP Delphi Python Ruby C Erlang Go Swift Scala R Verilog ܹ ģʽ Html/Css JavaScript jQuery HTML5 SharePoint GIS SAP Oracle ERP Dynamics CRM K2 BPM Ϣȫ ҵϢ Android iOS Windows Phone Windows Mobile ֻ ݿ ĿŶӹ SQL Server Oracle MySQL NoSQL ݿ Windows 7 Windows Server Linux
ű: vbs/VBScript DOS/BAT hta htc python perl Ϸ VBA Զ̽ű ColdFusion rubyר autoit seraphzone PowerShell linux shell Lua Golang Erlang ̳
վ: CSS/HTML/Xhtml html5 CSS XML/XSLT Dreamweaver̳ ԰ Android
360ͼ ת ᆱѡ ʳ Ѷ ӰƵ СϷ Chinese Culture Ʊ
Ф Ƶ йĻ ľѡ ͼ ͼ Ķ ͼ 20181
2018-1-17 1:05:54
ಥƵŮֱ
,Ӱ,Ůֱ,ѸԴ
TxTС˵Ķ
Ķ,С˵,ŵѧ
һ
һ,ϵͳ
ͼƬ
ͼƬ,Ůͼ
  վϵ: qq:121756557 email:121756557@qq.com  IT֪ʶ