issues
search
cse442-at-ub
/
project_s23-atomic
project_s23-atomic created by GitHub Classroom
1
stars
1
forks
source link
Create cookies to stay logged in
#33
Closed
maalolan210
closed
1 year ago
maalolan210
commented
1 year ago
Task Tests
Test 1
Go to
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q/
Click on log in.
Enter the following credentials: Username [last] Password [12345678]
Verify you are taken to the home page:
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q/homepage
Go back to
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q/
and click the log in button, you should be redirected to the homepage instead of signing in:
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q//homepage
Close the tab and go to
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q/login
and do the same for
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q/homepage
. In both cases you should be redirected/directly taken to the homepage because cookie is present.
Inspect element, go to application tab and verify under the cookie section, there is a cookie with the account's username.
Test 2
Go to
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q/
Click on log in.
Since you just finished task test 1, you should still be logged in for the next hour and redirected to homepage every time.
Go to inspect element -> Application -> Cookie. Delete the cookie.
Go to
https://www-student.cse.buffalo.edu/CSE442-542/2023-Spring/cse-442q/
and click log in. You should be sent to the login page again since the cookie no longer exists.
Task Tests
Test 1
Test 2