Beginner PHP Tutorial - 75 - Creating Cookies with PHP

  Рет қаралды 140,287

thenewboston

thenewboston

Күн бұрын

Пікірлер: 46
@2goldapples
@2goldapples 11 жыл бұрын
I love how you say cookies. "Cukys"
@AaronEstebanSEO
@AaronEstebanSEO 5 жыл бұрын
I believe he's saying "coo-kays".
@digital111x
@digital111x 11 жыл бұрын
So what would happen if you cleared cookies in your browser before the 10 seconds was up? It wouldn't display 'username', right?
@goldenVIN2012
@goldenVIN2012 12 жыл бұрын
message 'Notice: Undefined index: username in C:\xampp\htdocs\series\alex's example\cookie\view.php on line 3' will come out if the time is expired,how can i fix this?
@eskilwinstedt496
@eskilwinstedt496 8 жыл бұрын
What do I do if I accidentally ate the cookie? Need help
@eskilwinstedt496
@eskilwinstedt496 8 жыл бұрын
+robert robillard thanks, will try that. I don't really understand how it's supposed to work but I trust you because you can always trust people on the internet.
@flyinglack
@flyinglack 7 жыл бұрын
XD
@pranavreddy2197
@pranavreddy2197 9 жыл бұрын
Notice: Undefined index: username in C:\xampp\htdocs ew on line 3 help me
@PINOYako215
@PINOYako215 8 жыл бұрын
same here can any body please help ???
@nadeemkhalani5895
@nadeemkhalani5895 8 жыл бұрын
same here....!!!
@svkrclg
@svkrclg 7 жыл бұрын
put a backslash setcookie('username', 'alex', time()+20, "/");
@nikhilwadhwa5513
@nikhilwadhwa5513 5 жыл бұрын
Please let me know if anyone knows that how many cookies and sessions can be created in a website using PHP Technology?
@cjvaans4484
@cjvaans4484 8 жыл бұрын
It works with using time(). But when the cookie expires it shows Undefined index.
@psamuelsandeepkumar
@psamuelsandeepkumar 13 жыл бұрын
@MrJohnPringle. that is because of the error_reporting setting in your php.ini file. change it accordingly and u shouldn't be getting it anymore. put it as error_reporting = E_ALL & ~E_NOTICE
@MARCOWAF1
@MARCOWAF1 12 жыл бұрын
Ey. Thanks Alex, but I'm wondering: I didn't get how you get to the 'parent directory' page??
@LeftistUprising
@LeftistUprising 11 жыл бұрын
Why don't you make the cookie expire when the user logs out (i.e. session destroyed)?
@MrGuzrin
@MrGuzrin 7 жыл бұрын
Sir how can set cookies for other browse
@kostasnikoloutsos5172
@kostasnikoloutsos5172 9 жыл бұрын
Cookie seems not to be that mysterious now :)
@FFWDEntertainment
@FFWDEntertainment 13 жыл бұрын
I think Bucky should redo this series when he has time, every time I start to try to memorize something, alex goes "ummmm why isn't this working, oh yeah I forgot the most important part,let me just change that at the speed of light and switch screens."
@Polybius_Arcade
@Polybius_Arcade 10 жыл бұрын
Would you really use cookies for login purposes nowadays?
@awesomejackify3333
@awesomejackify3333 7 жыл бұрын
if you are getting the error Notice: Undefined index: username in C:\xampp\htdocs ew on line 3 put the setcookies script in another file and the echo cookie script in another file good luck :)
@mdz7372
@mdz7372 4 жыл бұрын
How to make cookie logger
@JasonRichardTesch
@JasonRichardTesch 9 жыл бұрын
Wow. The day when someone explains to me what a cookie is /:
@paulperole
@paulperole 9 жыл бұрын
+Jason Tesch long story short, a cookie is a little file stored on the visitor's computer, where you can add and use various pieces of information; a basic example would be storing info about whether the user is a new visitor or an existing one, OR maybe whether the user has clicked or not on a certain button on the site. hope this helps!
@Technologism
@Technologism 4 жыл бұрын
Cookies is not good for login Rather sessions
@LatinoWebStudio
@LatinoWebStudio 2 жыл бұрын
Thanks for the video!
@Madgod711
@Madgod711 11 жыл бұрын
You cannot create a permanent cookie. However you can create one with a very long experation time. stackoverflow(dot)com/questions/6865259/php-permanent-cookie
@luqmanafridi333
@luqmanafridi333 8 жыл бұрын
you deLiver SIR a good concept in very concise way. U Do weLL job
@Pradeep1680
@Pradeep1680 7 жыл бұрын
HTML5 cookies better than PHP ??
@cjvaans4484
@cjvaans4484 11 жыл бұрын
I like cookies, especially with chocolate chips on top.
@camelCaseFTW
@camelCaseFTW 11 жыл бұрын
pretty damn good idea you got there
@nO_d3N1AL
@nO_d3N1AL 10 жыл бұрын
I thought all time in programming languages are set from 1st January 1970, dunno why you thought 1990s lol. Great tutorials though
@iinsanebaby
@iinsanebaby 13 жыл бұрын
PROGRAMMIN IS FUN!
@phuccon
@phuccon 12 жыл бұрын
i use netbeans IDE 7.2
@zewax3704
@zewax3704 11 жыл бұрын
If you would like an easy way to set time in cookies you could paste in this simple function ( pastebin.com/T6hSgrC6 ), made by me. This is how you use it: timeAdd(3, "d") This sets time 3 days from now. This is how it should be looking in the setcookie: setcookie("cookiename", "cookievalue", timeAdd(3, "d")); Here's the values you're able to use in the second string: "m" - Minute "h" - Hour "d" - Day "W" - Week "M" - Month "Y" - Year The first value requires only a int which will be how many, for example, years the cookie should stay if "Y"-case. The function might not always be accurate because some months doesn't always have 31 days.
@MARCOWAF1
@MARCOWAF1 12 жыл бұрын
okok just realized...
@WegHuZ
@WegHuZ 11 жыл бұрын
Rofl, nothing is working! xD
@TheGuroguro12
@TheGuroguro12 8 жыл бұрын
Thank you very much
@andymc17
@andymc17 11 жыл бұрын
eat your cookies before they expire
@Mushfique13
@Mushfique13 7 жыл бұрын
Killing a Cookinbird.
@ALIMUNTH
@ALIMUNTH 13 жыл бұрын
@LaughingShinoo naoooooooooooooooooooooooooooooooooooooooooooaaaaaaaaaaoooooooooooooooaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
@xxiRaQiAtheistxx
@xxiRaQiAtheistxx 12 жыл бұрын
ThaNK YOUUUU ALeX
@ck0024
@ck0024 6 жыл бұрын
75 down
@RebornXSoldier
@RebornXSoldier 13 жыл бұрын
@LaughingShinoo The only thing stopping you is your attitude. If you need help beyond these videos, send just ask in a reply to my posts.
Beginner PHP Tutorial - 76 - Deleting Cookies with PHP
2:44
thenewboston
Рет қаралды 69 М.
Beginner PHP Tutorial - 73 - Setting PHP Sessions
7:44
thenewboston
Рет қаралды 191 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Beginner PHP Tutorial - 61 - $_SERVER Variables: Script Name
8:17
thenewboston
Рет қаралды 117 М.
PHP Tutorial (& MySQL) #38 - Cookies
5:51
Net Ninja
Рет қаралды 35 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 83 М.
Beginner PHP Tutorial - 77 - File Handling: Writing to a File
6:56
thenewboston
Рет қаралды 100 М.
Exploring Abandoned Games From Your Childhood
20:00
globert
Рет қаралды 39 М.
What cookies are and how they work!
5:55
FourZeroThree
Рет қаралды 65 М.
⚡️NEWS | UNITED RUSSIA OFFICE AND ATMS BURNED DOWN | COMPLAINING TO PUTIN ABOUT GREF
9:14
Learn how JavaScript COOKIES work! 🍪
14:15
Bro Code
Рет қаралды 59 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН