Тёмный

Login form using session and cookie with remember me in php 

learnWebCoding
Подписаться 23 тыс.
Просмотров 266 тыс.
50% 1

Login form using session and cookie with remember me in php
Share, Support, Subscribe!!!
RU-vid: / learnwebcoding
Facebook: / learnwebcoding
Blog: dwebcoding.blog...
GitHub: github.com/dur...
Connect with Me:
Linkedin: / durgesh-sahani
Facebook: / durgeshsahani99
Instagram: / durgesh_sahani99
Twitter: / durgeshsahani99

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 98   
@MoxetKhan
@MoxetKhan 8 лет назад
A good tutorial, but dear why you are setting again the values with javascript, the tutorial suppose to login the user without showing login page once the cookie is set. If they will click again on login button there is no use of using cookies they can simply save in browser. Check cookies, if valid skip login form and goto welcome.
@jitendraasole5827
@jitendraasole5827 5 лет назад
I agree
@virajmodi
@virajmodi 5 лет назад
Ya. Absolutely right. But ya nice tutorial btw.
@AvatarLandRazer
@AvatarLandRazer 7 лет назад
dont store sensitive information in session nor cookie
@codewithbishal1677
@codewithbishal1677 3 года назад
so where should i store??
@eliseurey2220
@eliseurey2220 Год назад
@@codewithbishal1677 database but I'm to lasy too so I wont
@caleby6553
@caleby6553 7 лет назад
Where is the security concerns? If you save user id and password into cookies, then anyone can see your actual password. Is that really true example of auto login?
@TanvirAhmed-ee4zm
@TanvirAhmed-ee4zm 4 года назад
He already said this is not a proper way to save cookies. you have to encrypt email and password and then save. you can use md5 to encrypt email and password in php.
@alassaneniane7243
@alassaneniane7243 5 лет назад
merci c'est un très bon tuto . mais je crois que la récupération avec " if (isset($_REQUEST['login'])) { extract($_REQUEST); } " est plus rapide .
@justrosy5
@justrosy5 2 года назад
I got it to work, then wondered about security, found a different tutorial on that, but it's code is broken. Am looking through your other videos for help with that. Do any of them address login security issues, database usage, and so on? Also, it would be really helpful if the coding was put in the video descriptions of your videos. I learn a lot from typing it all up, but I make mistakes that are hard to find and fix, since VBS Code doesn't do good debugging. Anyway, copying and pasting the code, and watching the videos all the way through would be a lot better for people like me who want to learn but just make dumb typos.
@dreamy4174
@dreamy4174 Год назад
Prefer code with Harry php tutorials
@mehmetercu6750
@mehmetercu6750 3 года назад
A lot of mistake in this video 😠👎👎👎
@khalidhalder7297
@khalidhalder7297 Год назад
not understandable your video..
@dileepkumarpal9170
@dileepkumarpal9170 6 лет назад
sir can pz send the source code
@alisheheryar8816
@alisheheryar8816 3 года назад
Please share your code with us
@BhootFmOfficial786
@BhootFmOfficial786 2 года назад
Thank you. i have solved my problem.
@mahmoods9861
@mahmoods9861 3 года назад
your style of presenting tutorial is not good. work on your tutorial before you upload. make sure not much surprises exist in vdo.
@vineetkumar9391
@vineetkumar9391 7 лет назад
sir you should clear all the things u have added in it why u r using -1 and what changes u made I didn't get . I think there is some problem with ur video and audio . you are doing something and saying somthng
@muteebbutt9283
@muteebbutt9283 2 года назад
this video sucks when audio is not synced with the video.......
@gauravkorde6409
@gauravkorde6409 7 лет назад
please upload video for login form to fetch userid and password from database
@yogeshsahni5808
@yogeshsahni5808 5 лет назад
code bhi daal dete bhai description me
@Rakesh-ux8ui
@Rakesh-ux8ui 2 года назад
anna Edit ah click panna form open aaga mathithu na .... Form show aagala bro but menu matu show aaguthu na
@itzseben
@itzseben 7 лет назад
could i get the code please??
@toolszm
@toolszm 3 года назад
How do I set Custom cookies in session. Then User never be see in browser cookies section how do i do
@banafritphotography
@banafritphotography 7 лет назад
Nice video. Thanks for the clear example!
@badong3683
@badong3683 2 года назад
easy & very helpful info, thanks but is there any way to acces $_SESSION variable by json/ajax in javascript?
@chandandubey7280
@chandandubey7280 3 года назад
ThankYou Sir, This video is very helpful in my project. very clearly you explain this remember password in this video!!
@sirji34
@sirji34 3 года назад
Sir can u help to user login date and time or ip address store in data base
@jamesmckay5206
@jamesmckay5206 7 лет назад
Really good tutorial to demonstrate the concept of cookies and sessions.
@graysonalan44
@graysonalan44 3 года назад
Sorry to be offtopic but does any of you know of a tool to log back into an Instagram account? I stupidly lost the login password. I love any tricks you can offer me.
@thiagomitchell6173
@thiagomitchell6173 3 года назад
@Grayson Alan Instablaster =)
@graysonalan44
@graysonalan44 3 года назад
@Thiago Mitchell Thanks for your reply. I found the site through google and I'm trying it out now. Takes a while so I will get back to you later when my account password hopefully is recovered.
@graysonalan44
@graysonalan44 3 года назад
@Thiago Mitchell it did the trick and I finally got access to my account again. Im so happy! Thanks so much, you really help me out !
@thiagomitchell6173
@thiagomitchell6173 3 года назад
@Grayson Alan No problem xD
@kjrbst
@kjrbst 5 лет назад
Hello my name is Richald flom Miclosoft techsuppolt
@monumishra-g3756
@monumishra-g3756 6 лет назад
sir जी कोई भी व्यक्ति इंडेक्स के पेज को यूआरएल से भी तो खोल सकता है बिना लॉगिन करे तो हम ऐसा क्या करे की कोई भी बिना लॉगिन के इंडेक्स पेज को न देख पाए इ if else conditions का इस्तमाल करे तो कितनी बार करे मेरे इंडेक्स पेज में 42 फॉर्म action url है
@aziraa7899
@aziraa7899 7 лет назад
the probleme now I can access directly to Welcome.php from the link, how can I make it the same as validate.php, access must be via email/pass?
@محسنجهان-ز8ر
@محسنجهان-ز8ر 4 года назад
your writing is so slow.work on it.thank
@AffaAu
@AffaAu 5 лет назад
A good example indeed!
@learnWebCoding
@learnWebCoding 5 лет назад
Thanks..!!
@heren3234
@heren3234 3 года назад
simple and usefull , i got what i want, thanks
@vandamieespadero6633
@vandamieespadero6633 3 года назад
Setting a cookies with password is not necessary it will lead to vulnerability of your personal account. Thank you for this video.
@athulyasethu
@athulyasethu 2 года назад
Then what you supposed to do instead for remember password??
@partagercestexistertv6241
@partagercestexistertv6241 4 года назад
It's really intersting thank you sir
@amjada.abuqaren2925
@amjada.abuqaren2925 3 года назад
Nice Video ✔ You have a special ❤ content here Great job, man 👏
@vamshidharreddy6189
@vamshidharreddy6189 4 года назад
after login i click back button from home page to login page and click forward button it is going to homepage without asking login details how to fix it please help me
@redseantlworld
@redseantlworld 4 года назад
Hmm? Sounds like your cookies, sessions are set. Isn't that supposed to be the case?
@hakansenturk5209
@hakansenturk5209 4 года назад
This only remembers the e-mail and password you write on the login.php section, but I want this code to remember whater we type it to e-mail textbox and password textbox not just the one we declared on login.php
@vinitamali8623
@vinitamali8623 4 года назад
Very good tutorial.thank you
@Samuel-ns5jb
@Samuel-ns5jb 2 года назад
Well done sir
@msriganesh3791
@msriganesh3791 2 года назад
Thanks sir
@pianoLee-sx9dx
@pianoLee-sx9dx 6 лет назад
Hello! I am trying to include an email into my validation form and have been following another tutorial so would appreciate if you could provide me with some assistance while maintaining the same structure... I want to include a rule where certain symbols such as @ is required but not sure how to do it in my form. Here is part of my code..
@khushitshah979
@khushitshah979 5 лет назад
How you mage url tutorila/.. something which server application you use
@learnWebCoding
@learnWebCoding 5 лет назад
I am using virtual host for it. For more details please check this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SrK7yVwkE-k.html
@TECLOVENIA
@TECLOVENIA 4 года назад
😍😍😍 bro
@Unknown-yl1do
@Unknown-yl1do 3 года назад
thank you
@amit_sahni22
@amit_sahni22 7 лет назад
hello... sahani ji what's up bro, This is very useful tutorial for cookie & Session.
@dadmehr114
@dadmehr114 3 года назад
nice man🌹✔
@sunilsahani1996
@sunilsahani1996 Год назад
Great sahani bhai
@narenderkohli7048
@narenderkohli7048 2 года назад
Nice sir👍👍👍👍👌👌👌
@learnWebCoding
@learnWebCoding 2 года назад
Thank you!
@granrethory1691
@granrethory1691 5 лет назад
where can download?
@prankklyn9867
@prankklyn9867 6 лет назад
i love this toturail .................
@SEKHAR0475
@SEKHAR0475 6 лет назад
helpful video on cookies and session variables
@harshitjain7338
@harshitjain7338 7 лет назад
Generally websites do have remember me option but ..even then email and password cant be seen in looking browser cookie section.. Its bit unsecure Which method we should use if we dont want passwords and email to be shown in browser cookie (settings section).
@mariolukacic3568
@mariolukacic3568 7 лет назад
Don't store password or username in cookie, better to make a random hash and store it to database, on return to login page check if that hash matched with a stored and login user back
@harshitjain7338
@harshitjain7338 7 лет назад
Is it a standard way ... Should I Use md5 algorithm?
@mariolukacic3568
@mariolukacic3568 7 лет назад
You can use whatever you want to make hash, you can make for example $hash = sha1(microtime(mt_rand(20-80))); so it will create hash with a number between 20-80 characters long. At least you can make a function to make more complex hash, and to validate it just reverse order of functions.
@vinodKumar-vc4vm
@vinodKumar-vc4vm 5 лет назад
hello sir why use cookies
@learnWebCoding
@learnWebCoding 5 лет назад
Check this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oWuCQkDQi-s.html here I have explained what is cookie.
@erfanchowdhury3962
@erfanchowdhury3962 7 лет назад
audio and video synchronization is very bad.
@asfandalikhan6269
@asfandalikhan6269 7 лет назад
but still, tutorial was helpful :)
@amolpisode4901
@amolpisode4901 6 лет назад
Good Understand
@raman2726
@raman2726 7 лет назад
In login.php file inside tag you are using variables $email and $pass inside quotes. Is it right?
@mariolukacic3568
@mariolukacic3568 7 лет назад
better don't use this code your site will be hacked so easy
@harshitjain7338
@harshitjain7338 7 лет назад
yeaah,... SQL Injection is a bastard
@a.yashwanth
@a.yashwanth 4 года назад
@@harshitjain7338 then using placeholders good idea?
@junedshaikh5162
@junedshaikh5162 7 лет назад
at the time of revision your video going forword !
@navehhadas6764
@navehhadas6764 7 лет назад
Great guide, thank you sir.
@alialharthi7042
@alialharthi7042 7 лет назад
Hi Dear Durgesh Thank you very much I think that you have missed the digit 24 in "time()*60*60*7". Because you do 7 minutes not 7 days
@RyuuzakiJulio
@RyuuzakiJulio 6 лет назад
Ali Al Harthi that’s actually 7 hours. And your code is is actually multiplying by current time so yeah a mess, he got it right as + but it was not 7 days.
@RyuuzakiJulio
@RyuuzakiJulio 6 лет назад
Ali Al Harthi you can also see on the cookie’s details: Created: Tuesday, 15 March 2016 at 22:02:17 Expires: Wednesday, 16 March 2016 at 05:02:17 Exactly 7 hours after creation.
@shannondavis5709
@shannondavis5709 5 лет назад
It it helps anyone that wants 7 days it would be time() 86400 * 7
@HamzaAli-zr7oe
@HamzaAli-zr7oe 7 лет назад
Thank u Very Much Durgesh,........Good Effort
@maximilianotorres1225
@maximilianotorres1225 6 лет назад
"hello friends hamburgesa ani" sorry XD
@akankhaahmed
@akankhaahmed 7 лет назад
Hi, your video and audio not sync after few munites can you mute your audio re-record your audio and just add the soundtrack .
@mulualemabate3193
@mulualemabate3193 7 лет назад
you can mute the video and can play the audio you want on another media player...:)
@salamaamoyo7776
@salamaamoyo7776 7 лет назад
very helpful for beginners
@pinto126
@pinto126 6 лет назад
instead of .value .InnerHTML would work
@drcortoglu
@drcortoglu 7 лет назад
well, it is not about the main subject of this video but can i ask you how to change "localhost" to "tutorials" ?
@mpg20011
@mpg20011 7 лет назад
I don't get this! one of the basic tenets of php sessions is that start_session() must be the first thing on the page. Here, in his validate.php he starts a session in the middle of a mess IF() statements. How does that work?
@tijana5398
@tijana5398 7 лет назад
You can put it wherever you want inside ,as long as it is above html tags ..
@ChandraTech52
@ChandraTech52 8 лет назад
best cookie example ever seen on youtube ....Thank you so much (y)
@asfandalikhan6269
@asfandalikhan6269 7 лет назад
some links ? Venkey if u know better than this
Далее