Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3799884
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:48:22+00:00 2026-05-19T13:48:22+00:00

On my website’s Start page I have a Search Mask where user set select

  • 0

On my website’s Start page I have a Search Mask where user set select different Search Criteria. When user doee’t then the default values will be set for the search parameters.

By clicking on Search buttom user comes on preview page, where the user has possibility to refine his search parameters agaian. And there can by many different types of preview pages. For examples if users searches in
Cars category then the preview page be other and the search mask will other as the have searched in Motorcycle category.

But again the detail page is single for all Kind of products.

Now I want to write a component that can hold the start page’S search options and for all different kinds of overview pages.

And I would also like to track that information that from which preview page I landed on detail page and when the user comes from detail page back to Preview page I was to load the desired mask with the values that the user already refined.

What will be the best practice to solve this problem and is there any design pattern available for such kind of problem?

Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:48:23+00:00Added an answer on May 19, 2026 at 1:48 pm

    Generally, speaking there’s no design pattern for the specific problem you’ve described. Depending on how you want to model it, you could implement patterns such as Strategy, State and/or Command. Where each of these provides some facility for encapsulating state (e.g. what type of preview and criteria) and some related behavior.

    Three options for keeping track of search criteria using different ColdFusion variable scopes:

    1. session
    2. cookie
    3. client

    Session scope

    This is server memory linked to a give user via a cookie that a developer can place information into. It’s designed to expire after a period of inactivity and ColdFusion provides event handling around its initialization and expiration via Application.cfc. Useful if you decide to have stateful objects attached to each user. Disadvantage is you can run out of memory if a lot of information is put there and/or long lived sessions are used.

    Cookie

    Sets client cookies. Can easily capture simple data. Cannot capture objects – you would need to serialize and deserialize their state. Scales well because only a cookie is tracked by the server. Easily hacked.

    Client

    Reads and writes data associated with a user session from persistence. By default this is the registry on Windows – don’t use this as it will likely crash your server with dire consequences if the registry becomes corrupted. Instead access the administrator and set it to use a database. Useful when you want to track lots of information about your users as they move about the site, but only scales as well as the backing database. Need to serialize data as with cookie scope.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The website I have to manage is a search engine for worker (yellow page
My website needs to have a form that automatically submits, sending the user (with
Website title is not displaying in browser title bar. I have seen page source
Website in question: christianselig.com At the bottom of the page I have a message
my website in www.codtelevision.com/live Click the link. For some reason, the page expands, then
The website I'm create has Events. Events have a title, date, and the userids
Website in reference: http://www.imvu-e.com/products/ht/clients/test/ Notice on the tables how I have a newline separating
My website project includes taking data from the user in the form of two
My website is configured to display a custom HTML-page when an error occurs. This
My website has a search procedure that runs very slowly. One thing that slows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.