Это видео недоступно.
Сожалеем об этом.

Login form using session and cookie with remember me in php

Поделиться
HTML-код
  • Опубликовано: 14 мар 2016
  • Login form using session and cookie with remember me in php
    Share, Support, Subscribe!!!
    RUclips: / learnwebcoding
    Facebook: / learnwebcoding
    Blog: dwebcoding.blog...
    GitHub: github.com/dur...
    Connect with Me:
    Linkedin: / durgesh-sahani
    Facebook: / durgeshsahani99
    Instagram: / durgesh_sahani99
    Twitter: / durgeshsahani99

Комментарии • 99

  • @MoxetKhan
    @MoxetKhan 8 лет назад +10

    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.

  • @jamesmckay5206
    @jamesmckay5206 7 лет назад +2

    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

  • @chandandubey7280
    @chandandubey7280 3 года назад

    ThankYou Sir, This video is very helpful in my project. very clearly you explain this remember password in this video!!

  • @sunilsahani1996
    @sunilsahani1996 Год назад

    Great sahani bhai

  • @Samuel-ns5jb
    @Samuel-ns5jb 2 года назад

    Well done sir

  • @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 года назад +1

      Then what you supposed to do instead for remember password??

  • @msriganesh3791
    @msriganesh3791 2 года назад

    Thanks sir

  • @alassaneniane7243
    @alassaneniane7243 5 лет назад +2

    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 .

  • @heren3234
    @heren3234 2 года назад

    simple and usefull , i got what i want, thanks

  • @BhootFmOfficial786
    @BhootFmOfficial786 2 года назад

    Thank you.
    i have solved my problem.

  • @banafritphotography
    @banafritphotography 7 лет назад +1

    Nice video. Thanks for the clear example!

  • @vinitamali8623
    @vinitamali8623 3 года назад

    Very good tutorial.thank you

  • @SEKHAR0475
    @SEKHAR0475 6 лет назад

    helpful video on cookies and session variables

  • @AffaAu
    @AffaAu 5 лет назад +1

    A good example indeed!

  • @partagercestexistertv6241
    @partagercestexistertv6241 4 года назад

    It's really intersting thank you sir

  • @AvatarLandRazer
    @AvatarLandRazer 7 лет назад +7

    dont store sensitive information in session nor cookie

  • @narenderkohli7048
    @narenderkohli7048 2 года назад

    Nice sir👍👍👍👍👌👌👌

  • @justrosy5
    @justrosy5 2 года назад +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

  • @amjada.abuqaren2925
    @amjada.abuqaren2925 3 года назад

    Nice Video ✔
    You have a special ❤ content here
    Great job, man 👏

  • @amit_sahni22
    @amit_sahni22 6 лет назад

    hello... sahani ji what's up bro, This is very useful tutorial for cookie & Session.

  • @caleby6553
    @caleby6553 7 лет назад +3

    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.

  • @navehhadas6764
    @navehhadas6764 7 лет назад

    Great guide, thank you sir.

  • @prankklyn9867
    @prankklyn9867 6 лет назад

    i love this toturail .................

  • @dadmehr114
    @dadmehr114 3 года назад

    nice man🌹✔

  • @TECLOVENIA
    @TECLOVENIA 4 года назад

    😍😍😍 bro

  • @amolpisode4901
    @amolpisode4901 6 лет назад

    Good Understand

  • @HamzaAli-zr7oe
    @HamzaAli-zr7oe 7 лет назад

    Thank u Very Much Durgesh,........Good Effort

  • @gauravkorde6409
    @gauravkorde6409 7 лет назад +1

    please upload video for login form to fetch userid and password from database

  • @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?

  • @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

  • @badong3683
    @badong3683 2 года назад

    easy & very helpful info, thanks but is there any way to acces $_SESSION variable by json/ajax in javascript?

  • @toolszm
    @toolszm 3 года назад

    How do I set Custom cookies in session. Then User never be see in browser cookies section how do i do

  • @Unknown-yl1do
    @Unknown-yl1do 3 года назад

    thank you

  • @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

  • @vineetkumar9391
    @vineetkumar9391 7 лет назад +1

    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

  • @justwaterweight
    @justwaterweight 4 года назад

    A mistake if you want to make cookie last for 7 days it should be 60*60*24*7 ,you set for 7 hours!!

  • @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 лет назад +1

      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 лет назад +1

      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.

  • @salamaamoyo7776
    @salamaamoyo7776 7 лет назад

    very helpful for beginners

  • @monumishra-g3756
    @monumishra-g3756 6 лет назад

    sir जी कोई भी व्यक्ति इंडेक्स के पेज को यूआरएल से भी तो खोल सकता है बिना लॉगिन करे तो हम ऐसा क्या करे की कोई भी बिना लॉगिन के इंडेक्स पेज को न देख पाए इ
    if else conditions का इस्तमाल करे तो कितनी बार करे मेरे इंडेक्स पेज में 42 फॉर्म action url है

  • @itzseben
    @itzseben 6 лет назад +1

    could i get the code please??

  • @raman2726
    @raman2726 7 лет назад

    In login.php file inside tag you are using variables $email and $pass inside quotes. Is it right?

    • @mariolukacic3568
      @mariolukacic3568 7 лет назад +1

      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?

  • @yogeshsahni5808
    @yogeshsahni5808 5 лет назад +1

    code bhi daal dete bhai description me

  • @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?

  • @alialharthi7042
    @alialharthi7042 7 лет назад +3

    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

  • @sirji34
    @sirji34 3 года назад

    Sir can u help to user login date and time or ip address store in data base

  • @dileepkumarpal9170
    @dileepkumarpal9170 6 лет назад +2

    sir can pz send the source code

  • @alisheheryar8816
    @alisheheryar8816 3 года назад +1

    Please share your code with us

  • @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 ruclips.net/video/SrK7yVwkE-k/видео.html

  • @ChandraTech52
    @ChandraTech52 8 лет назад

    best cookie example ever seen on youtube ....Thank you so much (y)

  • @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 лет назад +3

      You can put it wherever you want inside ,as long as it is above html tags ..

  • @junedshaikh5162
    @junedshaikh5162 7 лет назад

    at the time of revision your video going forword !

  • @granrethory1691
    @granrethory1691 5 лет назад

    where can download?

  • @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" ?

  • @kjrbst
    @kjrbst 5 лет назад

    Hello my name is Richald flom Miclosoft techsuppolt

  • @vinodKumar-vc4vm
    @vinodKumar-vc4vm 5 лет назад

    hello sir why use cookies

    • @learnWebCoding
      @learnWebCoding  5 лет назад

      Check this video ruclips.net/video/oWuCQkDQi-s/видео.html
      here I have explained what is cookie.

  • @akankhaahmed
    @akankhaahmed 7 лет назад +1

    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...:)

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 6 лет назад +2

    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..

  • @erfanchowdhury3962
    @erfanchowdhury3962 7 лет назад +12

    audio and video synchronization is very bad.

  • @maximilianotorres1225
    @maximilianotorres1225 5 лет назад +1

    "hello friends hamburgesa ani"
    sorry XD

  • @muteebbutt9283
    @muteebbutt9283 2 года назад

    this video sucks when audio is not synced with the video.......

  • @pinto126
    @pinto126 6 лет назад

    instead of .value .InnerHTML would work

  • @khalidhalder7297
    @khalidhalder7297 Год назад

    not understandable your video..

  • @mehmetercu6750
    @mehmetercu6750 3 года назад

    A lot of mistake in this video 😠👎👎👎

  • @user-mq2dp2ud3y
    @user-mq2dp2ud3y 3 года назад

    your writing is so slow.work on it.thank

  • @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.