Question

In: Computer Science

how do sessions and cookies come in play on social media platforms ? provide steps for...

how do sessions and cookies come in play on social media platforms ?

provide steps for the process of loggin in , and checking your newsfeed , explain how sessions and cookies are involved

Solutions

Expert Solution

On successful login on any social media platforms, the unique member id from the member database is stored in a session. Then, the cookies are set to keep the login name and the password for a specified expiration period. Instead of storing the users' plain password, random password and token are generated and stored in the cookie to avoid hacking.

Let's understand the steps for the process of loggin in with the help of a PHP user authorization.

  1. User submits login form. Form sends login and password to PHP.
  2. PHP validates login data, generates random string (session id), saves it to closed server storage in pair with user login, and sends session id to browser in response as cookie. Browser stores cookie.
  3. User visits any page on this domain and browser sends a cookie to server for each request.
  4. PHP checks if cookie has been sent, if such cookie exists in server storage with pair with login. Identifies user, provides access to his private content.
  5. Logout button removes the cookie from browser and sid-login pair from server storage. Browser does not send cookies, server does not see it and does not see sid-login pair.

Thanks


Related Solutions

Social Media platforms play a very important role in our today's life. For this task, you...
Social Media platforms play a very important role in our today's life. For this task, you need to select at least 2-3 most popular social media (e.g. Facebook) platforms and identify what are the security and privacy features available for their users. Compare these platforms based on security and privacy features and recommend your preferred platform.
Discuss your own experience with social media and whether you believe that social media platforms such...
Discuss your own experience with social media and whether you believe that social media platforms such as Facebook have some social obligation to ethical causes. Are social media platforms too commercial? Cite examples in support or your position. Explain your position on how well you believe most social media privacy filters and safeguards work, citing examples from your personal experience or research on the topic. 150 words.
Critically examine how the deployment and use of Social Media platforms by the        Metropolitan, Municipal...
Critically examine how the deployment and use of Social Media platforms by the        Metropolitan, Municipal and District Assemblies (MMDAs) can help curb illegal mining     activities in Ghana. Give examples to illustrate your points.
What role does Social Media play in your life? Are you aware of the social media...
What role does Social Media play in your life? Are you aware of the social media policies of the organizations where you work, attend school, or volunteer? Have you used social media to resolve problems, participate in a cause you are passionate about, or to learn about UMUC? How does Social Media impact your personal and professional communications?
What role do social capital and influence play in online communities? 2. Where does social media...
What role do social capital and influence play in online communities? 2. Where does social media marketing planning fit into an organization’s overall planning framework? 3. What are the phases of social media marketing maturity? How does social media marketing change for companies as they shift from the trial phase to the transition phase and eventually move into the strategic phase? 4. What are the steps in social media marketing strategic planning? 5. What forms of paid media can be...
potential downsides of leaving censorship up to the social media platforms, given that nearly all the...
potential downsides of leaving censorship up to the social media platforms, given that nearly all the big tech companies are headquartered in the US. Do you think this is a legitimate concern for other countries, i.e., that all information flow or the main "narrative" everyone sees will be largely dictated by American public and norms? Is it so much a matter of censorship OR a resistance to Americanization or a monopolization of information?
Businesses both large and small are flocking to social media platforms to engage consumers in conversations...
Businesses both large and small are flocking to social media platforms to engage consumers in conversations and also to drive sales through deals and coupons. Small businesses have found that social media and the Internet help them to level the playing field. They can foster closer relationships with clients and identify potential customers. Flirty Cupcakes owner Tiffany Kurtz says that Facebook and Twitter greatly helped her with product innovation, market expansion, and customer service. Many other entrepreneurs are using social...
identify two advantages and two disadvantages of SERMO and Doximity as social media platforms for medical...
identify two advantages and two disadvantages of SERMO and Doximity as social media platforms for medical and healthcare applications
China has a number of parallel social media platforms that serve the same purpose as mainstream...
China has a number of parallel social media platforms that serve the same purpose as mainstream social media in the Western world. What are the implications of this?
Today social media platforms such as Facebook, Twitter, WhatsApp, Instagram, YouTube, Google+, Pinterest, as well as...
Today social media platforms such as Facebook, Twitter, WhatsApp, Instagram, YouTube, Google+, Pinterest, as well as blogs, podcasts, and websites have become interwoven into our everyday lives as well as the culture of our nation. Please write one or two paragraphs commenting on the presence of externalities (positive, negative, or both) as it relates to the use of social media and how or should the government intervene in order to improve market outcomes.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT