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

  Training designer for a consulting firm

You are a training designer for a consulting firm. Your supervisor has allowed you to pick your next assignment. There are two options available:

  Exploitative technique used to get people to work harder

Management should not be held responsible for careless and accident-prone employees'. Do you agree with this statement? Why? Discuss.

  Question regarding the employees performance

How do managers measure their employees' performance? How have your performance reviews affected how you changed your performance? Were they effective?

  Selection procedure is causing adverse impact

The argument behind the Peter Principle is that individuals who are good performers in one job will probably be good performers in the next job up the promotion ladder.

  Question related to managing diversity

Explain what skills are needed to use this strategy effectively and Describe how this strategy will help your organization accomplish its goals

  Describe a compensation plan

Briefly describe a compensation plan that you are familiar with. It can be a current or previous plan you have encountered or a plan you have heard about through a peer. While thinking of the plan you are familiar with, also think about the federa..

  Evaluate an employee current and or past performance

Performance appraisals evaluate an employee's current and or past performance relative to his or her performance standard (Dessler, 2013). This seems to be the standard way of evaluating employees, at least in my current organization.

  What is the relationship between integrity and leadership

What is the relationship between integrity and leadership? Please include in your writing your own definition of Integrity and whether those in leadership roles are assumed to have (or demonstrate) integrity.

  After reading through the zinnia and acme scenarios

after reading through the zinnia and acme scenarios presented on page 225 of the budd text outline an employer

  Show the impact of corporate culture and multiculturalism

Do issues such as corporate culture, diversity, and multiculturalism have a significant impact on small businesses, particularly sole proprietorships

  The owner of two pizza parlors located in adjacent towns

the owner of two pizza parlors located in adjacent towns wants to computerize and integrate sales transactions and

  Sample departmental organization chart

Review the Sample Departmental Organization Chart, which includes titles, a brief position description, incumbent and his/her competencies.

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