Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to clear URL.whatever ?

Participant ,
Jun 01, 2010 Jun 01, 2010

I have a page which does this

<cfif isdefinted ("URL.addMerch")>

    do something

</cfif>

I want to then clear this URL.addMerch, so if the user clicks refresh, the above condition won't be true

How do I do it ? eg.

<cfset "URL.addMerch" = false>

TOPICS
Getting started
408
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Jun 01, 2010 Jun 01, 2010

You don't.

The URL comes form the browser.  If the browser makes a request that has url key-value pairs, the web server is going to parse that querystring and give it to ColdFusion which will populate the url structure for easy access to it.

If you want to track if a user and already requested a page, you will have to build that feature.  As simple method would be to place a flag, or some other type of data, into the session scope that indicates the page has been visited.  Then make the desired de

...
Translate
Valorous Hero ,
Jun 01, 2010 Jun 01, 2010

You don't.

The URL comes form the browser.  If the browser makes a request that has url key-value pairs, the web server is going to parse that querystring and give it to ColdFusion which will populate the url structure for easy access to it.

If you want to track if a user and already requested a page, you will have to build that feature.  As simple method would be to place a flag, or some other type of data, into the session scope that indicates the page has been visited.  Then make the desired decisions based on that value.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 01, 2010 Jun 01, 2010
LATEST

ah, of course

I'll flag it up, so it can't be repeated immediately

thanks Ian

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources