Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
PHP cookies in Hindi
1. You can download this document from www.besthinditutorials.com
PHP Cookies
Introduction to PHP cookies in Hindi
Creating PHP cookies in Hindi
Deleting PHP cookies in Hindi
Introduction to PHP cookies
Cookies identify Cookie
file ब आ website visit व website आ PC
cookies store ब ब आ व उ website
browser request request उ website cookies send
Cookies उ website च आ
website visit च
Cookies mainly 2
Analytical cookies - इ cookies आ visitor
recognize औ visitors
Functional cookies - इ cookies functional tasks perform
user choices आ इ cookies
व
Website व cookies ई
User experience improve
User identify
Number of visitors count
User choices
2. You can download this document from www.besthinditutorials.com
PHP cookies functions manage
setcookie() - function cookies create
isset() - इ function आ check cookie
created
Creating cookies
PHP cookies create आ setcookie() function इ
function 6 parameters इ function format च
setcookie(name-of-cookie,value,expire-time,path,domain-name,security);
name-of-cookie - cookie unique इ
व cookie value access
value - व value आ store च value
ई string integer value आ
expire-time - व time ब आ cookie store
च
path - उ directory path आ cookie store
च
domain-name - domain आ website ब आ
उ
security - आ इ 1 set cookie व secure HTTPS
PHP cookies create उ च
<?php
3. You can download this document from www.besthinditutorials.com
setcookie(“name”, “ vipin”, 1000000, “/cookies/” “ ”, 0);
setcookie(“age”, “24”, 1000000, “/cookies/” “ ”, 0);
?>
Accessing cookies
PHP cookies $_COOKIE[ ] array store आ cookie
value access च $_COOKIE[' cookie-name'] variable व
access ई user व आ आ उ
welcome message print व ब cookies
access आ च request ई
cookie send इ आ isset() function इ
उ च
<?php
if(isset($_COOKIE[“name”])
{
// do remaining task here. Like print a welcome message.
}
?>
उ आ cookie create अब cookie access उ
च
<?php
echo “good morning”.$_COOKIE["name"]; // this will print vipin
?>
Deleting cookies
4. You can download this document from www.besthinditutorials.com
Cookies इ ब आ cookies delete इ
2
1. setcookie() function cookie call
2. setcookie() function past date call
<?php
setcookie(“name”);
?>
Read more tutorials on PHP in Hindi at www.besthinditutorials.com