I am working in a Login.cfm file and using the followign approach for login
<cfif IsDefined("FORM.inpUserName") AND ((LCASE(TRIM(inpUserName)) IS "myusername" AND inpPassword IS "mypassword") )> <cfset session.username = FORM.inpUserName /> <cfset SESSION.LoggedIn = 1> <cflocation url="index.cfm" addtoken="no"> <cfelse> <cfset SESSION.LoggedIn = 0> </cfif> <cfparam default="" name="inpUserName" /> <cfparam default="" name="inpPassword" /> The form is defined as follows:
<cfform action="Login.cfm" method="post" and so on ... Inside cfform, I have defined two cfinput tags capturing the information from user with name attribute as name="inpUserName" and value="#inpUserName#"
and similarly for password field.
When I click on Login button nothings is happening, shoudln't it be going to index.cfm as I have mentioned at the top in cflocation tag?
Please clarify
application.cfcorapplication.cfm, did you enable sessions?