Double Posting of forms/Two sessions

We have a really strange issue, wondering if anybody else has even had this
We're developing an Android app which utilizes web content from the CF8 server by using a browser that we build into the app.
The app allows end users to complete a form (from our server - just a web page really) and then post it, it's really no different than a web site.
Here's the problem, the code started to crash yet looked perfect and after some digging I found that what appeared to be happening was that the 'browser' was some how posting twice, two separate instances, I have a UUID that writes to the dbase with the record, that was unique in the TWO records that it created, I put a CFABORT at the end of the SQL insert statement, and still got two records, I also had it update a counter in the dbase, and I found that I still got two record updates, with the CFabort in place it showed that there was no code AFTER the sql that could cause it to loop back into the code, so it must be hitting the page twice (no checks for dupe records as this was not expected)
I am guessing it's the app, it doesn't happen in firefox, or the phones native web browser outside of the app.
I'm going to play around with the application.cfm which does check for a session, and if one does not exist kick the user back to the index.cfm, and also look for any initially provided URL variables and set them into the system, I am wondering if that redirect is messing it up.
Anyway, it's a strange one, thought I'd throw it out there for comments
Thanks
Mark

After taking a bit of a break from this because it was driving me nutts! I went back to the very beginning and did unearth a clue, what it tells me I'm not sure.. CF or App issue, not quite sure still..But check this out.
My application.cfm file sets up the session, as below:
<cfapplication
    sessionmanagement="yes"
    name="myapp"
    sessionTimeout="#createTimeSpan(0, 0, 30, 0)#"
        />
<!---// make sure cookies expire when the user closes their browser //--->
<cfif structKeyExists(cookie, "cfid") and structKeyExists(cookie, "cftoken")>
    <cfset localCFID = cookie.cfid />
    <cfset localCFTOKEN = cookie.cftoken />
    <!---// reset the cookies //--->
    <cfcookie name="CFID" value="#localCFID#" />
    <cfcookie name="CFTOKEN" value="#localCFTOKEN#" />
</cfif>
<CFIF NOT #IsDefined('session.aff')#>
<CFINCLUDE TEMPLATE="defaultvariables.cfm">
<CFSET session.aff="0"><CFLOCATION URL="index.cfm"></CFIF>
Is checks to see if a sessoin has already been established, if not it includes the defautvariables.cfm template which basically just looks for a few URL variables initially passed to the server from the app (the app goes to index.cfm first shot with some variables), the variables are set into the session and then the code redirects back to index.cfm. I have to have the redirect because the rest of the pages need to have a session, so if session.aff is missing, it'll kick back to the index.cfm from any point. One thought is to do away with that and put all the other active pages in their own directory, but I'm not sure I'll benefit from that.
Anyway, when the app hits the index.cfm page, without a session established, I get a double hit on the server, it clocks up two of everything, but when I go back to is with the session active, one hit, if I close the app, clear the session go back again, same thing, 2 hits, now this is just this page, not sure why the other pages are doing it further down the road, but perhaps this initial 'confusion' brought on either in the app or in the CF is causing it to go wrong further down the road.
I may try breaking it all apart so it hits the index.cfm, checks the session and if there isn't one, create and check for url variables, then when it's done, kick over to another page in a sub folder with all of the other files.. then the application in the sub folder just checks for the session.aff and if not present kicks back to the index.cfm, the only advantage with that is that I can stop the page redirecting back to itself, the initial index.cfm.. purely experimental, surely what I have should work.

Similar Messages

  • Need help in posting a Form

    Hi Everybody,
    I'm having a Struts application that uses DynaValidatorForm for performing Validations.
    The basic flow is like this -> I've got a home page, then a login page (action -> register.do) & a third page (action -> authenticate.do) which is displayed after authenticating the user.
    I'm trying to re-direct the user to the home page once he directly accesses /authenticate.do
    For this, in the Action class of /register, I'd defined a session attribute & set a value to it.
    Then, in the Action class of /authenticate, I'm checking for the session attribute. If not present, I'm re-directing the user to home page.........
    The problem that I'm facing is that when I directly access /authenticate.do, the application is not getting re-directed & instead, it is displaying error messages that User name & password (the 2 fields present in my login page) are required..........
    The <action> tag of /authenticate.do has got validate="true" & hence it seems that validation occurs before re-directing....
    Therefore, can someone tell me why is the application not posting the form to Action class of /authenticate........
    Thanx in advance.....
    Regards,
    Sasidharan N

    <form name="input" method="get" action=""> <!-- ARE
    YOU SURE YOU NEED "GET"
    and not "POST"? -->
    <table cellspacing="0" cellpadding="0" border="0"
    width="300">
    <tr>
    <td><label for="proj_root">PROJECTROOT:
    </label></td>
    <td><input type="text" size="50" name="proj_root"
    id="proj_root"></td>
    </tr>
    <tr>
    <td><label for="frontend">FRONTEND:
    </label></td>
    <td><input type="text" size="50" name="frontend"
    id="frontend"></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><input type="submit"
    name="submit"
    id="submit" value="Submit" onclick="save()"></td>
    </tr>
    </table>
    </form>
    (your form needs an action attribute value)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "goober35" <[email protected]> wrote in
    message
    news:gcjmlh$p42$[email protected]..
    > Hello,
    > I am new in writing HTML code. I need help to align my
    Form and it's text.
    > Please view my code and please show me how to align all
    the square boxes
    > (the
    > square box is where the user type the text input).
    Currently I have 2
    > boxes but
    > they are not aligned. The below is my code:
    >
    > <FORM name="input" method="get" >
    > PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
    NAME=proj_root> <br>
    > FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
    <br>>
    > <BR>
    > <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
    <BR>
    >
    > </FORM>
    >
    >
    > Would you please help.
    >
    > Thank you very much
    > Goober35
    >
    >
    > <FORM name="input" method="get" >
    > PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
    NAME=proj_root> <br>
    > FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
    <br>>
    > <BR>
    > <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
    <BR>
    >
    > </FORM>
    >

  • Help needed, double post-submit on Oracle 9iAS ?

    Hi,
    I am working on a project where we make use of Oracle Application Server 9.0.3 in combination with OC4J and struts. During development we have made use of JDeveloper 9.0.3 and its integrated server for testing the application. Unfortunately we have been waiting too long with deploying the app on the 'real' (Oracle IAS) server, and now we found out that when deploying the application on IAS, some parts of our application do not seem to work anymore.
    After a little investigation we found out that all POST submits of our forms seem to be submitted twice.
    Since we did some Javascript-evaluation before submitting, we first thought that that the problem was client-side, but after adding code to make sure that the submit will only occur once (flag set to 1 before submit, and only submit when flag = 0 etc..), the problem still persists...so the submit does not come from our document.formx.submit() command...
    Let me restate that this double posting does not occur within the JDeveloper-test-environment using the same browser.
    Now convinced that the problem was server-side, we thought we could focus on this side. Unfortunately, after an occasional test with a Mozilla-browser (our default (customer) browser is IE6), the problem did NOT occur !
    So, to sum things up :
    - Javascript does not submit twice
    - On the server, the logging indicates a double post-action
    - On client-side, only a single-post is allowed...
    - mozilla does not seem to cause problems, while IE6 does.
    - JDeveloper runtime environment does not expose the problem (with either browser, it goes smooth), while deploying on the IAS 9.0.3 server does...
    Can anyone shed some light on this ? We've been looking into it for a day already, and need to get it fixed asap (as always ;o))...
    Thanks for any info,
    Bas van Driel

    This sounds like a strange java problem not IAS
    From the sun site
    "When I try to open a file through my Java Web Start application, a message box pops up with the title "javaw.exe - No Disk". Why does this happen?
    This is a bug in the Java 2 SDK v1.2.2 or v1.3 . This bug will be fixed in a future Java 2 SDK release. In the meantime, there are a couple workarounds: "
    Id be very tempted to remove any JDK/JRE installations, or even better start with a clean machine.
    Hope this helps.

  • [fail] double post

    sry double post
    Edited by: Damien on Sep 18, 2011 11:42 AM

    I failed to mention in the previous reply that I was able to get my system running again with the ddr2 memory however it is not easy.....
    1)All connections removed from MB
    2)place a single stick of ddr2 in slot 4 with turbo cards (manual says slot one but this does not work)
    Doing step 1 and 2 results in a start up with a stop a few seconds later and another start but no boot into bios.
    3) Now I remove ddr2 and turbo cards, put in a single stick of ddr3 in slot 5, run a power cycle
    4) replace the turbo cards and ddr2 in slot 4
    5) if bios still does not load then I try removing graphic card and running a power cycle and then replacing graphics card.
    By the end of step 5 seems I finally get two posts that shut down and then a third post which boots into bios.

  • I'm looking for the old toolbar that doesn't double post the web adress and only has single line entries and the extension xpi doesn't work with my new computer

    I'm looking for the old toolbar that doesn't double post the web adress and only has single line entries and the extension xpi doesn't work with my new computer

    Mike wrote:
    > Could someone tell me why this prototype-based lightbox
    seems to work on one
    > of my sites but not on the other?
    >
    > I literally took the exact same .js & css files,
    copied them over from one
    > site to the other, but it's only partially working on
    the new site.
    >
    > Works :
    >
    http://www.roxanacampagiorni.com/
    >
    > Doesn't work :
    >
    http://www.vilverset.com/sample.html
    >
    > Been troubleshooting this one for days, and I'm stumped.
    Script wants
    > nothing to do with lightboxing HTML files on the new
    site. Only straight
    > JPGs. But it was written to work with them, and it
    *does* work with them
    > just fine on the *other* site.
    >
    > Where is the anomaly between the two sites that's
    causing it to break in
    > sample.html?
    >
    >
    Not sure if this is relevant but on the page that works you
    have these
    js files linked - 4.....
    <script type="text/javascript"
    src="/scripts/jscripts.js"></script>
    <script type="text/javascript"
    src="/scripts/prototype.js"></script>
    <script type="text/javascript"
    src="/scripts/effects.js"></script>
    <script type="text/javascript"
    src="/scripts/control.modal.2.2.3.js"></script>
    and on the page that doesn't - 3......
    <script type="text/javascript"
    src="/scripts/prototype.js"></script>
    <script type="text/javascript"
    src="/scripts/effects.js"></script>
    <script type="text/javascript"
    src="/scripts/control.modal.2.2.3.js"></script>
    HTT
    chin chin
    Sinclair

  • PLEASE DO NOT DOUBLE POST?!!!!!!!!!!!!

    Chris,
    Is that a NEW rule? Is it taking up YOUR space? I posted a revised version. If you didn't have any answer to the problem, you don't need to make a response!

    <vent level="mild">
    Whoa, calm down there Chester. The person who asked you not to double post did so politely, probably trying to inform you of a bit of etiquette of which you may not be aware.
    The issue isn't one of space. It's one of time. Often times what happens is somebody will spend a fair amount of time answering a question, only to find out it's already been answered on another forum. The people that post answers here are volunteers who give of their time freely to help people out. To find out that the time given was wasted is really annoying.
    Having said all that, if, as you pointed out, you revised your question--maybe to ask for clarification of a point, or to ask about something else that came up as a result of the first answer, then there's no problem posting again, (although, it's probably still better form to keep going on the original thread). The other time when it's acceptable to repost to another forum is if you've waited a "reasonable length of time" (good luck getting consensus on what that means--I say 2 days) with no answer, then you may want to try another forum. Although, you'll find a lot of the same people posting answers on a wide variety of forums, so crossposting may not help all that much in any event--the same people are gonna see it anyway.
    </vent>

  • I try to run the CC Products in a new computer (the third one: one of the former two was stolen) but i can't

    I try to run the CC Products in a new computer (the third one: one of the former two was stolen) but i can't: when it asks me to retry or close session on the others, I click on 'continue' but nothing happens. What can I do? Thank you for any help about it.

    Thank you kglad, but one of the other two computers has been stolen from
    me, I can't sign out on that one. Is there another way to solve the problem?
    2015-04-12 16:47 GMT-03:00 kglad <[email protected]>:
        I try to run the CC Products in a new computer (the third one: one of
    the former two was stolen) but i can't  created by kglad
    <https://forums.adobe.com/people/kglad> in *Creative Cloud Download &
    Install* - View the full discussion
    <https://forums.adobe.com/message/7431492#7431492>

  • [SOLVED] Double posts?

    Is it just me or has there been a sharp increase in the incidence of double (or on occasion more) posts over the last couple of days.
    By double posts, I don't mean cross-posting, but obviously inadvertent duplicate posts appearing below each other in the same thread.
    Has there been some change to FluxBB, or is this a bug?
    Last edited by jasonwryan (2010-05-19 08:26:18)

    It seems you can't edit your posts either. I tried to append this:
    #edit I see why: when you hit 'Submit' you get an error message:
    Server error!
    The server encountered an internal error and was unable to complete your request.
    Error message:
    Premature end of script headers: php
    If you think this is a server error, please contact the webmaster.
    Error 500
    bbs.archlinux.org
    Tue May 18 14:42:55 2010
    Apache
    ...and hitting 'Refresh' resends the form.

  • How can I read a form using session in javaServerlet?(thanks)

    How can I read a form using session in javaServerlet?(thanks)

    you can not. You get the form entries through the request object.

  • How to lock WBS lement in a program or user to avoid double posting in FBS1

    Hi Experts,
    I have an issue, i need to lock WBS element to a report or user to avoid double posting if other user is also running the same report.
    Hope to hear answers.
    Thanks,

    workaround found.

  • Error 500 when posting large form to windows azure from Android

    I have a HTML page with a form containing a large (>1400 character) hidden field value, that will not submit on Android browser to any site hosted on windows azure websites. I have tested this on 4.1 and 4.2 on different devices.
    I have checked the error logs from Azure and am receiving a 500 error.
    The page will submit from all modern desktop browsers, and iOS devices.
    Unfortunately I can not provide a link to the actual page, as it resides under our companies extranet, but if I point the target of this simple form to any Azure website (*.azurewebsites.net) from an android device, I get the 500 error.
        <form action="http://*****.azurewebsites.net/" method="post">
            <input type="hidden" name="imageData" value="/9j/4AAQSkZJRgABAQEAYABgAAD/4RuURXhpZgAATU0AKgAAAAgABQ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2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDv9tJtr6C54obaTbRcQm2kK07gJtpNtO4hNtJtqrisJtpu2nckQrTdtNMTE20mynckbtpNtVcQ3bTdlO5DNvbRtrjudomKNtFxCbaTbTuITbTX2opZiAo6moqVoUoOpUdkt2OMJTkoxV2wVd8e9QcZ7qR"
    />
            <input type="submit" />
        </form>
    To further test this I created a brand new site on azure websites, leaving everything as default. No code or anything uploaded (so you get the "This web site has been successfully created" page). Posting the form to this site gives a 405 response
    (as expected), except for android that gives the 500.
    Is there a setting or something I am missing somewhere?
    Following up, I have identified this event in the error log if this helps:
    138. GENERAL_READ_ENTITY_END
    BytesReceived="0", ErrorCode="The I/O operation has been aborted because of either a thread exit or an application request.
     (0x800703e3)".

    Originally I thought it may have been a browser issue, so I installed the latest Chrome and Firefox browsers as well, which all respond the same.
    This is on 2 separate devices, both modern hardware running Android v4.1 and v4.2

  • Double posting of payment

    hi,
    i badly need help. where should i start looking on the error of double posting of payment? after the reconciliation with our book balance for the month of december, it was found out that there appeared a floating reconciling item which turned to be a double posted payment. how do i resolve this?
    thanks!
    gladys

    Hi
    Normal business solution is to enter a correction invoice with the distribution reversed and knock off the extra payment. I don't know if there is a better way to handle this in Oracle.
    Thanks
    Ramaswamy

  • Oracle  - Using XML in Oracle/ SORRY double Post

    SORRY for double Post!
    Good Morning!
    I wanted to insert some xml Data into my Orcale XML DB:
    First of all I registered 2 Schemas required for the XML, like this:
    Begin
    DBMS_XMLSCHEMA.registerSchema(
    schemaURL => 'Mailpiece_Processing/oif_dtypes',
    schemaDoc => bfilename('XML_TEST','oif_dtypes.xsd'));
    End;
    then Created a table:
    Create table XML_default auf XMLType
    then inserted XML like this:
    insert into xml_default
    values
    XMLTYPE
    Bfilename ('XML_TEST', 'Test.xml'),
    nls_charset_id('AL32UTF8'
    Now to my question: Oracle is offering more than one possebility to save XML into its DB. If I import XML like this, is it called CLOB Storage or object relational?
    Thanks in advance
    runkel
    Message was edited by:
    user623693
    Message was edited by:
    user623693

    Hi ,
    I can only give u a few examples here but for the full sytanx and features of this powerful feature u may have to refer to some documentation online or read a book on XML within Oracle Database.
    Let me try a few examples here
    1) To extract the data from XML document an SQL plus command is available in XML DB. This feature is available from 10G onwards
    example : select xmlelement(name,ename) from emp
    Output will look like
    <NAME>SMITH </NAME>
    <NAME> JOHN </NAME>
    <NAME> JONES </NAME>
    2) CREATE TABLE FAMILIES (F_ID NUMBER(3), F_XML XMLTYPE);
    insert into families values(1,xmltype('<XML.....>'));
    or
    insert into families values(1,''<XML>......' ));
    Hope this helps !!!
    Regards
    Faiz

  • Double posting of APC value in non leading ledger

    Hi,
    While posting asset, system is posting to both Leading and non leading ledger where as configuration is allowed to post only leading ledger in realtime and periodic posting is allowed in non leading ledger. That cause double posting in non leading ledger on execution of ASKB. Please guide.
    Regards,
    DC

    ASKB is working based on this table "APERB_PROT". So if I remove these entries, no posting will be allowed through ASKB which is possible if I simply not execute ASKB. Here what I am looking for that on posting of original value should only post to leading ledger and with ASKB it should post in non leading ledger because of its configuration.

  • How to find and kill session similar to forms user session

    We have a forms and reports based system that uses the oracle sessions. Sometimes if a form takes a long time we have the need to navigate to iAS>Forms>User Sessions, find the IP of the machine where the form is not responding and kill it based on the IP of the troublesome machine.
    I want to add this into our forms environemnt so people can kill their own sessions if need be but not sure how this is handled
    is it a simple alter system kill session in the db or something different.
    also how is the ip found to match the session?
    Thanks

    hi,
    Instead Set session timeout parameters..So that user gets logged off automatically from the application after a particular interval of time
    For this you have to make changes in httpd.conf file,web.xml file and env file
    Regards
    Fabian

Maybe you are looking for

  • I have songs missing on iTunes but they are on my iPhone. How can I copy from the iPhone into iTunes on my mac air

    I have songs missing from my iTunes on the computer but they are on my iPhone 3s and my iPad mini. How can I get them into iTunes so they are in my library.?I have the latest iTunes on my commuter. Thanks for any suggestions.

  • GetProcessForPID is deprecated; what to use instead?

    I have been using GetProcessForPID to get the ProcessSerialNumber for the running application, as in ProcessSerialNumber psn; int pid = [[NSProcessInfo processInfo] processIdentifier]; OSStatus error = GetProcessForPID(pid, &psn); I then use this Pro

  • External Lacie D2 Quadro Drive will no longer mount on iMac.

    Hi all, I'm running an Intel iMac on Snow Leopard, maybe 18 months old. I've had my Lacie drive (D2 Quadro) for maybe 3 years or so and it has never once caused me any problems. Lastnight, I accidentally didn't eject the Lacie drive properly before c

  • Sizing Impact for Trex and user defined Message search

    Hi All,     In PI 7.1 we have content base search in nwapi and also we have trex based earch. Do any one have any idea about the sizing impact for the both...? Regards Pradeep P N

  • Batch Rename Images

    I'm trying out PSE11 at the moment and it does look and feel nice. I have my photos in various folders followed by a folder named as the year so i have everything in years. Example :- Photos_2010                       01_01_10                       0