im having problems with my login page, below are the following pages,
application.cfm login_process.cfm login.cfm
the problem is that if i type in the correct user name and password it gets redirected to another page, not the page that i want, what could be the problem??
application.cfm
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body>
<cfapplication name="MyApp" clientmanagement="Yes"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,15,0)#"
applicationtimeout="#CreateTimeSpan(0,2,0,0)#"><!--- Now define that this user is logged out by default ---> <CFPARAM NAME="session.allowin" DEFAULT="false">
<!--- Now if the variable "session.allowin" does not equal true, send user to the login page --->
<!---
the other thing you must check for is if the page calling this application.cfm is the "login.cfm" page
and the "Login_process.cfm" page since the Application.cfm is always called, if this is not checked
the application will simply Loop over and over. To check that, you do the following call
--->
<cfif session.allowin neq "true">
<cfif ListLast(CGI.SCRIPT_NAME, "/") EQ "login.cfm">
<cfelseif ListLast(CGI.SCRIPT_NAME, "/") EQ "process_login.cfm"></cfif> </cfif>
</body> </html> Process_login.cfm
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body> <cfparam name="Form.Username" default=""> <cfparam name="Form.Password" default="">
<cfif NOT Len(Trim(Form.Username)) OR NOT Len(Trim(Form.Password))> <!--- one or both of these is blank, redirect them ---> <cflocation url="login.cfm?error=Length"> </cfif>
<cfquery name="qVerify" datasource="userLogin">
SELECT user_name, user_pass
FROM tblAdmins
WHERE user_name = '#Form.Username#'
AND user_pass = '#Form.Password#'
</cfquery><cfif NOT qVerify.RecordCount>
<!--- no results found, redirect them --->
<cflocation url="login.cfm?error=NotFound">
<cfelse>
<!--- Found their details, take them to the members-only page --->
<cflocation url="http://localhost/frontpage.html">
</cfif>
</cfelse></body> </html>
login.cfm
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#D1DDE9"><body>
<p align="center"><font color="#000000" size="6" face="Arial, Helvetica, sans-serif"><strong>Financial News Image
Database</strong></font></p>
<p>This section is for Authorised users only</p>
<p><a href="http://localhost/frontpage.html">Homepage</a></p>
<p> </p>
<cfparam name="URL.error" default="">
<form name="login" action="process_login.cfm" method="POST">
<cfif URL.error EQ "Length">
<div align="center">Please enter your Username and Password<br>
<cfelseif URL.error EQ "NotFound">
<p>This Username and Password wasn't found. Please try again<br>
</p>
</div>
</cfif>
<div align="center"> Username:
<input type="text" name="Username">
<font color="#D1DDE9"></font><br>
Password:
<input type="password" name="Password">
<br>
<input type="Submit" value="Login">
<input type="reset" name="Reset" value="Reset">
</div>
</form></body> </html>
From: "Peter Harrison" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: [ cf-dev ] OT : Multiple SSL Certs on Load Balanced Web Servers
Date: Mon, 22 Mar 2004 13:51:14 -0000
Fire off an e-mail to the support chaps (and potentially chapettes) at thawte.com and ask them that same question.
I'd be keen to know too.
Currently I doubt it can be done, each machine will need to generate a CSR every year (or however often it will be). I bet the CSRs will vary and when they come back signed they won't be interchangeable. However, if there is a way to say "my CSR will be like the other one's" then maybe it could work. Can't help there unless I do loads of registry and file monitoring along with trial and error.
- Peter --- I'm there.com - "Timeless" sent you
-----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 22 March 2004 12:01 To: '[EMAIL PROTECTED]' Subject: [ cf-dev ] OT : Multiple SSL Certs on Load Balanced Web Servers
Afternoon all.
Anyone know that if you are running a load balanced web server environment
and you want to setup an SSL Cert for secure.mysite.com for the both of them
(they are essentially mirrors of each other) would you need to purchase 2
certificates or will 1 do? We are essentially going to be using the same
domain name and don't want to purchase multiple certificates if at all
possible.
N
This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540. It contains information which is
confidential and may also be privileged. It is for the exclusive use of the
intended recipient(s). If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful. If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910. The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
--
These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]
--
These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger
-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by
activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*To unsubscribe, e-mail: [EMAIL PROTECTED]
