What should be used to prevent javascript from accessing a session id value?.

Answers

Answer 1

Cookies should be used to prevent javascript from accessing session-id values.

What are cookies?

Cookies are brief text messages that a website you visit sends to your browser.

Web browsers are instructed to only send cookies using encryption using the Secure cookie property.

The session ID can be taken from the user's browser cookies during storage, frequently via cross-site scripting. The session ID may be seen while it's being sent by listening in on network traffic.

Keep in mind that every request to the server includes a session ID. Using the cookie attribute of the Document object,

JavaScript is also capable of manipulating cookies. JavaScript has the ability to read, write, change, and remove cookies that are specific to the current web page.

Hence, cookies should be used to prevent javascript from accessing session-id values.

To learn more about the cookies refer to:

https://brainly.com/question/20263903

#SPJ1


Related Questions

Other Questions
Lava is pouring out of the crust at a vent on the ocean floor. As it cools, igneous rocks form.Which characteristics would one expect to find when studying the cooled lava?small crystals and coarse texturesmall crystals and fine texturelarge crystals and coarse texturelarge crystals and fine texture Ordinary water boils at 100C. Can it be made to boil at 95C or 105C. Lashawn makes scrambled eggs with 3 spoonfuls of salsa for every 2 eggs. Gilberta adds 7 spoonfuls of salsa for every 5 eggs.Whose scrambled eggs have a stronger salsa taste?A. Lashawn's eggsB. Gilberta's eggsC. The dishes of scrambled eggs have equal salsa tastes Table I contains outputs of the function f(x)=b^xf(x)=b xI need help What are the contributions of each of these scientists to the cell theory? And how did that information contradict what was believed or accepted at that time?M.J. Schleiden-Louis Pasteur-Rudolf Virchow- What is the solution for x in the equation?53x + 4 =2OA. * = -4OB. * = 412O C.OD.Xx =-1/7/20 How is Vasudeva like Siddhartha?Both leave for the forest at the end of the novel.They have both studied with Gautama Buddha.Both of them are simple and uneducated.They have followed their own way to enlightenment and found it on the river. Given the figure below solve for X Which of these organelles is found in plant cells but not in animal cells In testing for differences between the means of two dependent populations where the variance of the differences is unknown, the degrees of freedom are: If a business hires enployees to perform different highly specialized jobs what is it practicing decide whether this statement is true, or false. If it's false, write a correct one. 2. a glacier has no effect on the shape of a river valley + =a: b:c: d: you don't need to answer this. I just posted this for fun .points: 100 A sharecopper in the south usually needed to How does a simile most clearly contribute to the overall meaning of thispoem?Welcome to my room where everything's a mess.My sneakers share their smelly perfume,A collection of dinner plate leftovers linger like uninvited guests,Here, last week's grubby garments pile high to the sky,There, crumpled papers sleep around the trash can nearbyNow Mom, the Boss, stands in the doorway and fumes:"You'll lose your allowance if it's not clean by noon."OA. "Mom, the Boss" suggests that Mom makes the rules aboutcleanliness.B. "Where everything's a mess" suggests that almost nothing in theroom is clean.C. "Last week's grubby garments" suggests that the clothes are dirty.D. "Iike uninvited quests" suggests that the leftovers are not wanted The function f represents the marketing team's expected number of user profiles after x months, when the domain is restricted to all real or hole The owner of a national software company has been watching current economic information for the past two quarters and a rapid rise in demand for its software suites. Last month 30 new software engineers were hired to meet the demand. Even though these new hires will finish their project work in a few months, the owner plans to retain them in anticipation of future demand. Why is the owner making these type of decisions for the long-run You are given that cos(A)=5/13, with A in Quadrant II, and sin(B)=7/25, with B in Quadrant II. Find cos(A+B). Give your answer as a fraction. Adam traveled out of town for a regional basketball tournament. He drove at a steady speed of 72.4 miles per hour for 4.62 hours Are there security issues in Tiktok? If so, give me one piece of evidence.