iNETstore Knowledge Base Home      Documentation (PDF format)      Support Helpdesk

Detecting customer login in static html pages

Topic: Auto customer login
Products: iNETstore 2002, iNETstore Studio 2001

If your store contains static HTML pages then it is likely that your customers may bookmark these pages and try to return to them at some point in time. This article explains one option of how to log the user into the store.

When a user returns to a static HTML page that they have book marked then they will not have yet logged into the store. The login mechanism is there so that the iNETstore server can track the users progress through the store for functions such as searching and the shopping cart.

The most reliable mechanism is to auto login the user if they have not already logged in.

This can be achieved by inserting a single line of code into your static HTML pages that references an EHTML page with a login detection script.

Here is how it works:

  1. Insert the following line into your static HTML pages:

<iframe width="1" height="1" src="../checklogin.ehtml" scrolling="no" frameborder="0"></iframe>

  1. Copy the page checklogin.ehtml in the ZIP file available for download here into the root directory of your store.

The page checklogin.ehtml will detect if the user has logged in by checking if they have a user name. If they don't then the static page that the user has book marked will be refreshed and the user will be logged into the store. The page that will be returned after the refresh will be the "home page" of the "Guest" user account. By default this is "public/home.ehtml".