473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How do i check if a form key is working?

97 64KB
I was just reading about nonces and thought I could try to implement one on a website I have where the login could be protected a bit more.

So, I found some generic code to generate a form key and added it to the site, but I'm not sure if it's doing anything. It gave a few errors until I cleaned up the code and now it runs the login like normal.

I tried to check chrome dev tools to find some info on the form key but wasn't sure where to look. I checked the "Resources/local storage" & "Resources/session storage" both of which are empty, but there's one cookie listed. I'm fairly sure the cookie is not the form key I'm looking for, so can anyone tell me where to look?

FYI The code I got came from here: http://code.tutsplus.com/tutorials/secure-your-forms-with-form-keys--net-4753
Jul 13 '15 #1
0 1129

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Axel Foley | last post by:
Hi Folks, i'm newbie at JS; but "learning by tweaking" is my middle name! Trying to set up a link partnership application on a client's site; got this script at "The Javascript Source", but it...
3
by: wj | last post by:
Hi all, Im trying to, deal with a problem that drives me crazy! Im useing the following code to chech the fields of a form before really submitting them: ------- <script...
2
by: Dknight | last post by:
Hi, all! I have a problem, how can I check a form data before sending it to server. I have the example below, but first data is sent to server, but after JavaScript checks the data :( I need...
2
by: Assimalyst | last post by:
Hi, I have a javascript that checks a form for changes, if it has any it alerts the user before they navigate away from the page. it can be disabled on a submit button click by adding ...
1
by: Yammaski | last post by:
Hi In this code the field must have at least 3 characters : (var minLength = 3;) Code: // check for Voornaam if (document.Registreren.Voornaam.value.length < minLength) { alert('You have to...
0
by: tshad | last post by:
I got a piece of code to check if a Web page was refreshed (user pressed refresh button). But I can't get it to work. The code is: ************************************************************...
1
by: stevencarroll19 | last post by:
What i wnat to do is check to see if a form is open before a new record can be entered. If any of the forms are open ( Question3 Reason, Question 4 Reason and Question 9 Comments) I want an error...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
3
by: missred | last post by:
Hi All, I'm hoping someone can help me with this problem. the form works ok in firefox and IE6, but when send is pressed, a blank email form or a blank IE7 page comes up, instead of the message...
2
by: dancerman | last post by:
I want a simple as possible regex to check the format of my form submission URL string, I don't care whether is an actual real working URL, just that it be in proper URL format and, IF POSSIBLE add...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.