Problem regarding the automatic log-in

Assignment Help HR Management
Reference no: EM13829327

Problem:

Automatic Log-in

a. Implement a servlet that presents a new user with a form containing fields for entering a user name and password (the latter should use an appropriate type of input element). The form should also contain a checkbox, initially unchecked, labeled "Check to log in automatically in the future." If the user checks the box and successfully logs in (that is, the username and password are both "CSisCoolStuff"), then the user name and password should be stored in two cookies (you may assume that cookies are enabled on the client). After successfully logging in, the user should see a page that says "Logged In Successfully." An unsuccessful attempt to log in should return the user to a page with an error message followed by the original login form, with the checkbox checked if it was checked on the previous form and unchecked otherwise. On subsequent visits, the servlet should attempt to log the user in using cookie information, if available. If this fails, the user should see the original log-in form, without any error message. If it succeeds, the user should see a "Welcome Back" page. Set the cookies to expire after six months.

b. Extend the program in (a) so that if it tries to store the user name and password in cookies but fails, it will display a message on the "Logged In Successfully" page informing the user that cookies must be enabled in order to automatically log in.

Additional Information:

The question is from Computer Science and it explains about writing the program which validates a web-user by offering a checkbox with username and password. For successful login with login Id and password, the program should show a window saying successfully logged in and with wrong login Id and password, a window should show error message. This has been presented in the solution comprehensively. You can find out the program attached along with the solution.

Total Word Limit: 488 Words

Reference no: EM13829327

Questions Cloud

Understanding the management assertion : 1.Understanding the management assertions related to a speci?c control is an important factor in preparing the tests of controls. Using the assertions provided below, select the management assertion(s) that relates to the purpose of the controls in t..
Observations of the water demonstrate newton law of inertia : Explain how your observations of the water demonstrate Newton's law of inertia. Draw a free body diagram of your box of water from the situation. Draw arrows for the force of gravity, the normal force (your hand pushing up on the box), and the stop..
Vulnerability testing of key and strategic government : You are a new IT security professional for a small police department. At first you did not see your agency as being a large target for attacks. However, the city recently appointed a new and very controversial police chief.
Describe how you would decide whether to refinance : You are considering refinancing your mortgage. Your current loan is at 7% with 14 years left and was negotiated one year ago with $2,000 closing costs. The new loan would be 5.5% for 15 years with closing costs of $1,500. Describe how you would decid..
Problem regarding the automatic log-in : Implement a servlet that presents a new user with a form containing fields for entering a user name and password (the latter should use an appropriate type of input element).
How do you see it as a factor of business : Discussion, do a little research on Globalization. Then post a few paragraphs on what globalization means to you. How do you see it as a factor of business? Of the economy? Of technology
Stan is an auditor for cartman& kenny : 1.Stan is an auditor for Cartman& Kenny, CPA. He has recently beenassigned to a new private client called Southpark Services, a provider of Web management services. Southpark has clients throughout the United States. The company manages the clients' ..
What is your current writing process : Write a reflection of at least 250 words that answers the following questions: What is your current writing process? How is it different from or similar to the writing process discussed in the book
Describe the parties who were harmed or helped by this fraud : In July 2004, the US government filed civil and criminal charges against four former executives of Netherlands based Abhold's subsidiary of US Food Service Inc., an operator of supermarkets such as Bi-Lo and Giant Food Stores. Describe the parties..

Reviews

Write a Review

HR Management Questions & Answers

  Assessing the various roles of managers

Prepare a 700-800 word paper assessing the various roles of managers and individuals in the change process.

  Why are the following business processes significant which

why are the following business processes important? which process do you feel is most important? explain your

  Evaluating mission statements

The mission statement describes the purpose of the organization (i.e., why the business exists). As outlined in the Mission Statements article, here are some things to consider when evaluating a mission statement:

  Effective policy for ensuring good recruitment

What should a company do to ensure that it has an effective policy for ensuring good recruitment and retention of key staff in Oman today?

  Effective organizational training programs

Given the changing employee demographics and rapid updates to technology, it is important for organizations to link training and development to the needs and preferences of its workforce. Training facilitates acquisition of new knowledge and skill..

  Is outsourcing good for ibm

Is Outsourcing Good for IBM and For the US and What benefits do multinationals bring to the US and to other countries?

  External social pressures

What role do external social pressures have in influencing organizational ethics? How might these issues be relevant to organizational and personal decisions?

  Reporting of exchange transactions

Compare the organization's reporting of pledges and contributions to its reporting of exchange transactions. Discuss the funds that are utilized.

  Create incentives for change by keeping score

From the Discussion section or the BSC literature, what are good criteria to evaluate the BSC measures and How well does the draft scorecard meet the criteria that were stated

  Sales management your response should be at least 350 words

your response should be at least 350 words in length. please use my course book only all sources used including the

  Discuss how sexuality effects development

Interview a LGBT community member; discuss how sexuality effects their development.

  Determine and explain how the standards you just created

create a list of universal standards that can be applied to organizational ethics programs even though the text says it

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd