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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:02:10+00:00 2026-06-03T12:02:10+00:00

I’m trying to setup user authentification in Jquery Mobile/Coldfusion8. I’m using Coldfusion for just

  • 0

I’m trying to setup user authentification in Jquery Mobile/Coldfusion8. I’m using Coldfusion for just a week so I’m still on shaky ground.

Say I have the following Jquery Mobile pages:

// "outside"
index.cfm
content.cfm
content2.cfm
content3.cfm
// "inside" 
secure.cfm

The user should be able to login from all outside pages using a login form.

I’m trying to think of the best way to handle this with multiple content pages and each one having it’s own login (can’t change this). The problem will be, when changing pages, I will always have at least two pages in the DOM, so there will be two login forms both named “LoginForm”.

I tried nevertheless, and am getting this error:

Variable THISFORM is undefined

not sure as to why? Probably because there already is a “loginForm” on the index.cfm page.

My question:
Any clues on my error?

What would be the best way to set something like this up? I think the whole login-routine should go into the index.cfm, since this will be the anchor page, that always stays in the DOM. I also put the login-form inside a template and pull this into every page, which also feels right.

But how should multiple instances of my loginform be handled?

Thanks for help

EDIT:
Some code:

<!-- TEMPLATE -->
<CFFORM ACTION = "#ThisForm#" NAME = "LoginForm" > 
    <input name = "Username2" id="Username2" type="text" /> 
    <input name = "Password2" id= "Password2" type="password" /> 
    <input type = "submit" id="CheckLogin" name="CheckLogin" value="<cfoutput>#tx_login#</cfoutput>" /> 
</CFFORM>

<!-- INDEX PAGE and content pages all look like this -->
<cfoutput>    
    <div data-role="page" id="starter">
        <div data-role="header" data-position="fixed" data-theme="a">
            <h1><cfoutput>#tx_willkommen#</cfoutput > </h1>    
            <!-- this calls the template -->
            <CFINCLUDE TEMPLATE="../templates/tmp_pop.cfm">
        </div>
        <div data-role="content "...
</cfoutput>

<!-- inside application.cfm -->
<cfif Session.ative EQ "No ">
    <CF_index datasource="mydatabase "
        ...>

<!-- inside index.cfm -->
<cfif Session.ative EQ "No ">
    <CFPARAM NAME="Attributes.Datasource ">
    <CFPARAMs more params...
</cfif>

Not sure this is helpful, but you should get the basic structure from this. Could it be the problem, that I’m setting parameters only on index.cfm IF no session is active. If a user goes to index.cfm, params are set, a session is created. I thought when I pull in the next page into the DOM, these parameters are still active, aren’t they?

  • 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-06-03T12:02:14+00:00Added an answer on June 3, 2026 at 12:02 pm

    I’ve never done any mobile development, but what we do is just set a cookie, with a expiration, and check that cookie every time a user tries to access a page and just include that cookie check file

    <cfinclude template="cookie_check.cfm">
    

    cookie_check.cfm:

    <CFIF IsDefined("cookie.User_Id") is False OR isDefined("cookie.password") is False
        <title>Login Error</title>
        <h3>You must login . Click here to <a href="index.cfm">login</a>.</h3>
        <CFABORT>
    </CFIF> 
    

    I”m assuming you could do something like that on your pages. Just include a small check file, and if it is expired, show the log in page.

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.