Friday, February 15, 2019

Parameters that Determine if there's a Logged In User or Not on the Web Store

To verify if there is a logged-in user or not:

1. Visit the site then click Login link to go to the login page.
2. View source code from the login page. Look at the comment around line 13

take note of e=0 and r=17 (no entity ; shopper role) this means you are not logged in.

3. Attempt to log in
4. View source code again and look at line 14

where e=customer ID and r=custom customer center role ID. 
This means you are logged in.

No comments:

Post a Comment