Enter your username and password
User name
Password
 
Forgot my password
[allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => johndoe01 [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Redirection limit error - Macromedia ColdFusion

Redirection limit error - Macromedia ColdFusion

I am a newbie to cold fusion. I am getting error "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked" Following is how my application.cfm looks like: <cfapplication name="HelloWorld" sessionmanagement="yes"> <cfset application.datasource = "PC20998"> <cfif NOT isdefined("session.userid")> Opps...Session id is not defined...redirecting....<br> <cflocation addtoken="no" url="_main_login.cfm"> </cfif> <cfsetting showdebugoutput="yes"> If I take off the "<cflocation addtoken="no" url="_main_login.cfm">" line from application.cfm, then everything works fine. But if I leave them in there, then I get the above error message. My goal here is to validate that user is logged in ...

  1. #1

    Default Redirection limit error

    I am a newbie to cold fusion. I am getting error "Redirection limit for this
    URL exceeded. Unable to load the requested page. This may be caused by
    cookies that are blocked"

    Following is how my application.cfm looks like:

    <cfapplication name="HelloWorld" sessionmanagement="yes">
    <cfset application.datasource = "PC20998">
    <cfif NOT isdefined("session.userid")>
    Opps...Session id is not defined...redirecting....<br>
    <cflocation addtoken="no" url="_main_login.cfm">
    </cfif>
    <cfsetting showdebugoutput="yes">

    If I take off the "<cflocation addtoken="no" url="_main_login.cfm">" line from
    application.cfm, then everything works fine. But if I leave them in there,
    then I get the above error message. My goal here is to validate that user is
    logged in before view any pages in that particular folder. Any help! Thanks
    in advance,

    John Doe

    johndoe01 Guest

  2. #2

    Default Re: Redirection limit error

    I don't know what is on your _main_login.cfm page, but perhaps this warning
    applies to the page that contains the CFLOCATION tag:

    Warning
    Do not set a cookie variable on a page on which you use the cflocation tag. If
    you do, the cookie is never saved on the browser. Likewise, if you use a cookie
    to store a client variable, the client variable is never set.

    Phil

    paross1 Guest

  3. #3

    Default Re: Redirection limit error

    Phil,
    Following is _main_login.cfm page. I am using session varible, not cookies.
    So I am thinking that the cookie issue can be ignored. I might be completely
    wrong on this, I am a newbie to coldfusion

    John Doe




    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; cht=iso-8859-1" />
    <title>Re-estimate</title>
    <link href="../css/TextVerdena.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <p>This is login screen</p>

    <!--- Table that contains fields for username and password input --->
    <div align="right">
    <form action="index.cfm?step=validate" method="post" name="login"
    id="login">
    <table width="200" border="0" class="LoginCss">
    <tr>
    <td colspan="2" align="right" nowrap>Enter your username and password</td>
    </tr>
    <tr>
    <td nowrap="nowrap"><div align="left">User name </div></td>
    <td><input name="username" type="text" id="username" maxlength="20" /></td>
    </tr>
    <tr>
    <td><div align="left">Password</div></td>
    <td><input name="password" type="password" id="password" maxlength="20"
    /></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input name="Submit" type="submit" class="LoginCss" value="Log In"
    /></td>
    </tr>
    <tr>
    <td colspan="2">Forgot my password</td>
    </tr>
    </table>
    </form>
    </div>
    </body>
    </html>

    johndoe01 Guest

  4. #4

    Default Re: Redirection limit error

    APPLICATION.CFM is executed before every page. If a user has never logged in,
    then SESSION.USERID is never set. When you are redirected to _main_login.cfm,
    APPLICATION.CFM is executed before any of the code in _main_login.cfm is
    executed, which means that you are redirected again to _main_login.cfm because
    SESSION.USERID has never been set. Eventually, you are stopped because you
    exceed the redirection limit.

    Phil

    paross1 Guest

Similar Threads

  1. Error attempting to write location redirection
    By Homero in forum Coldfusion Server Administration
    Replies: 0
    Last Post: March 31st, 04:09 PM
  2. Redirection Limit for this URL exceeded????
    By orionMX in forum Macromedia ColdFusion
    Replies: 2
    Last Post: March 30th, 11:14 PM
  3. Please help: Error - Circular Redirection
    By Jerry in forum PHP Development
    Replies: 3
    Last Post: June 6th, 08:43 AM
  4. #25127 [Com]: error with memory limit
    By mpaesold at gmx dot at in forum PHP Development
    Replies: 1
    Last Post: August 22nd, 06:13 PM
  5. error report redirection
    By Ronald J Marchand in forum SCO
    Replies: 6
    Last Post: July 18th, 03:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •