FEISystems / ca-adpq-prototype

CA ADPQ
2 stars 2 forks source link

When I restart a session, it still shows me as logged in but I cannot see Admin or My Order History #199

Closed ClaireReinken closed 7 years ago

ClaireReinken commented 7 years ago

I think this is a bug

ClaireReinken commented 7 years ago

[‎3/‎3/‎2017 10:15 AM] Claire Reinken: So when I was looking at the site the other day, it said "Logout (Admin2)" at the top but I was unable to add things to cart I clicked on Logout and then the login appeared and I wasn't logged in anymore but it still showed "logout" This was after I stopped a session and then resumes *resumed it Does that help? [‎3/‎3/‎2017 10:22 AM] Terry Boswell: when you say stopped a session then resumed, what do you mean? [‎3/‎3/‎2017 10:22 AM] Claire Reinken: I closed IE and then went back to the page

neelusingh28 commented 7 years ago

I observed a slightly different issue now...in chrome/Firefox and IE

  1. Log in as Admin1 - System displays as expected Logout (Admin 1) and Admin & My Order History on top left
  2. Close the browser
  3. System displays the site with Logout (Admin 1) but Admin & My Order History on top left disappears
  4. System allows to perform any other actions like add to cart, compare and place order

@ClaireReinken - I guess we need to know correct expected results that what should happen if in case user close the browser and restarts.

ClaireReinken commented 7 years ago

Expected results should be:

neelusingh28 commented 7 years ago

@ClaireReinken - Above expected results are working fine if user manually clicks on logout . Can we know the expected results for closing the browser without manually logging out?

ClaireReinken commented 7 years ago

If the user closes the browser, they should be logged out.

neelusingh28 commented 7 years ago

I have retested, closing the browser is NOT logging out the user. Below are the bug details.

  1. Log in as Admin1 - System displays as expected Logout (Admin 1) and Admin & My Order History on top left
  2. Close the browser
  3. System displays the site with Logout (Admin 1) but Admin & My Order History on top left disappears
  4. System allows to perform any other actions like add to cart, compare and place order
JXPrime commented 7 years ago

That's not how it works. We issue a cookie which lasts for a day. Even if you close your browser the cookie will remain.

neelusingh28 commented 7 years ago

All right closing then since manual log out is working fine.