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 7420429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:14:14+00:00 2026-05-29T08:14:14+00:00

I am using ColdFusion 8.0.1. I am writing a little code in the application

  • 0

I am using ColdFusion 8.0.1.

I am writing a little code in the application file that will look at the URL. If any of a certain type of property is passed, I don’t want to update a property in a SESSION structure.

Basically, if a visitor accesses any page that has to do with our registration process, we do not want to update the SESSION.UserInfo.ReturnToURL variable. For every other page they access, we want to update the variable.

All pages that have to do with the registration process will have “myiq.reg” in the URL. If this were the case, I would use the code below.

// DETERMINE WHETHER TO UPDATE RETURNTOURL
if (not structKeyExists(URL, "myiq.reg")) {
    URLString = "http://" & CGI.SERVER_NAME & CGI.SCRIPT_NAME & CGI.QUERY_STRING;
    SESSION.UserInfo.ReturnToURL = URLString;
}

But it’s not that simple. My people want to be able to pass other properties that are similar, like this:

myiq.reg_confirm
myiq.reg_password
myiq.reg_save

I need to be able to soft code these to work with any registration page that they might create in the future. Basically, I need something like this :

if (not structKeyExists(URL, "myiq.reg*")) {
    SESSION.UserInfo.ReturnToURL = URLString;
}

Notice the WILDCARD after “myiq.reg”. I’ve tried this, but it doesn’t work.

How do I code this so that any page that is access with a URL property that begins with “myiq.reg” is ignored?

  • 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-29T08:14:15+00:00Added an answer on May 29, 2026 at 8:14 am

    You could get a structKeyList() of the URL scope, and just do a regex find in that. Something like:

    reFindNoCase("(?:^|,)myiq\.reg", structKeyList(URL))
    

    (only superficially tested)

    You could improve the regex a bit if you wanted to more accurately match actual variable name patterns rather than just any occurrence of myiq.reg in the string.

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

Sidebar

Related Questions

I'm currently writing a parser for ColdFusion code. I'm using a regex (in c#)
I am using ColdFusion 8.0.1 I am working on an existing application that has
I'm using ColdFusion to populate a template that includes HTML unordered lists ( <ul>
I'm using coldfusion 9 and I'm trying to grab a file from an ftp
I have a web application, written in ColdFusion, which periodically starts using 100% of
I am using IIS and JRun to serve coldfusion application. Something is limiting maximum
I am writing a WPF application that has an optional dependency on an API
Using Coldfusion's SpreadSheet() object I have created an excel file and now the user
I am using ColdFusion 9.0.1 and some database that I cannot change. I am
I'm using ColdFusion to return a result set from a SQL database and turn

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.