Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorial: Secure Your Login Form using Tokens

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,821
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 27, 2010

Secure your website login form using tokens. Its a common php technique used instead of captchas. Tokens are fast,secure, and very easy. I will be uploading more tutorials so subscribe to my channel. Thanks.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • What's the advantage to using classes? I have found them to actually be annoying when declaring variables..

  • Damn, fuck! Why is my english so bad? Its hard to follow you for me :) But you have great tutorials, dude!

  • @caseyburk This does not secure anything. You can easily execute this same code on your own desktop (not on the server) and it will work.

    One of the only ways to secure forms is to NOT use PHP's sessions. You make your own and save it to a database. Then when the form has been submitted you query the database for that session variable. If it doesn't exist, well, you got yourself someone trying to abuse your form.

    This is useless and redundant code.

  • excellent, thank you

  • @caseyburk by making a file that has a form like his but setting the session token = 1 and the input field token = 1

    is my guess

  • So unless I'm mistaken, your intent behind the use of tokens is to eliminate (or reduce) the likelihood of someone downloading your working form in order to maliciously use it on their own server?

    Do any methods exist that would allow someone to bypass this little trick? I find it hard to believe that this is a catch-all for this type of defense... Regardless, you have another subscriber. :.) Great job!

  • Cool I like this better then what I was using thx

  • tnx man

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more