-----Original Message-----
From: Brian J. LeRoux [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 12:49 PM
To: [EMAIL PROTECTED]
Subject: ses and cf_location woeI'm in the process of converting an app over to erikv's ses but I've run into a snag. I have a login that submits its own fuseaction. It processes the login just fine but when it goes to re-direct to the appropriate page the url looks like this:
http://localhost/wcl_v2/index.cfm/fuseaction/index.cfm/FUSEACTION/admin%2Emain
and then the app. just stalls...
heres what my files look like:
act_login: The red is whats giving me the problem..
<cfparam name="errormsg" default="">
<cfif isdefined("form.login")>
<cfif form.username is "" and form.pass is "">
<cfset errormsg = "You must enter a username and password." >
<cfelseif form.username is "">
<cfset errormsg = "You must enter a username to login." >
<cfelseif form.pass is "">
<cfset errormsg = "You must enter a password to login." >
<cfelse>
<cfquery name="getusers" datasource="#request.dsn#">
Select * From tbl_user_index where username = '#attributes.username#' and pass = '#attributes.pass#'
</cfquery>
<cfif getusers.recordcount eq 0>
<cfset errormsg = "INVALID LOGIN. Sorry no record of that username/password was found!">
<cfelse>
<cfset client.loggedin = 0>
<cfset user = StructNew()>
<cfset user.user_ID = #getusers.user_ID#>
<cfset user.username = #getusers.username#>
<cfset user.permissions = #getusers.permissions#>
<cfwddx
action="cfml2wddx"
input="#user#"
output="client.user">
<CF_LOCATION
URL="#self#"
doslash="yes"
FUSEACTION="admin.main">
</cfif>
</cfif>
</cfif>************************************************************************************************
dsp_login:<cfoutput>
<font color="red">#errormsg#</font>
<form action="#request.self#/fuseaction/home.login" method="post" name="loginform">
<table bgcolor="F5F5F5" border="1" cellpadding="3" cellspacing="0" bordercolor="white">
<tr><td>username: </td><td><input type="text" name="username" /></td></tr>
<tr><td>password: </td><td><input type="password" name="pass" /></td></tr>
<tr><td colspan="2"><input type="submit" name="login" value="login" /></td></tr>
</table>
</form>
</cfoutput>
**************************************************************************************************Comments questions suggestions and any and all help is greatly appreciated. Thanks in advanc,brian
==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================
