Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Upon every search request on Front-End the temporary search table, unique to each website visitor, (e.g. "inp_ses_932492397_inp_Search") is created in the database to store search results. The "932492397" in table name represents Session ID of that user (the session is specific to used web browser).

Unfortunately when search is performed by Guest (non logged-in user) the search table is never automatically deleted, because Guest doesn't have any real session associated with them.

Solution

In "\CategoriesEventHandler::OnSimpleSearch" and "\kCatDBEventHandler::OnSimpleSearch" methods:

  1. locate "if ( !$search_table_exists ) {" statement at the end of the method
  2. inside that IF add this code: $this->Application->StoreVar('search_performed', 1);

Related Discussions

Related Tasks

  • No labels