Added: 2 years ago
From: phpclass
Views: 6,910
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

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

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

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

  • 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