Menu

$_POST doesnt't work in IE

Help
2009-09-07
2013-05-01
  • cedriccione

    cedriccione - 2009-09-07

    Hallo,
    I have a page in Apache/2.0.61 (Win32) mod_auth_sspi/1.0.4 Server, when try to use a simple form with $_post the values are not always present in the called page, this is the sample pages:
    the calling page (uno.html)
    ====================
      <body >
          <form  id="diretta" name="diretta" action="due.php" method="post">
            tipo<input type="text" id="tipo" name="tipo" value=""><br>
            <input type="submit"> <br>
          </form>

      </body>

    the  action page  due.php:

    <body>
    <?php
      print_r(count($_POST));
      echo "<br>";
      print_r(array_values($_POST));
      echo "<br>";
      print_r(array_keys($_POST));
    ?>
    </html>
    <body>
    ================

    When i click on submit was expecting to find this

    1
    Array ( [0] => ddd )
    Array ( [0] => tipo )
    ==========================
    using firefox all work's fine, but using ie i have this results:
    ===================
    0
    Array ( )
    Array ( )
    ==================
    If in http.conf i remove the mod_aut_sspi directive
    =======================
        <Location />
            AuthName "Zona protetta generica"
            AuthType SSPI
            SSPIAuth On
            SSPIAuthoritative On
            SSPIOfferBasic On
            SSPIOmitDomain Off
            # SSPIBasicPreferred
            # SSPIUsernameCase lower
            require valid-user
        </Location>
    ====================
    also ie works fine.

    Can u tell me why?

    Thank., Marco!

     
  • acote

    acote - 2010-04-22

    Hi,

    We have same problem with a little site that use SSPI here but when I tried to google my problem I find someone tell to set KeepAliveTimeout 1  in the vhost.conf for the specific site

    After do that IE work fine but don't know the impact that change can be have if you have a big site

     
  • cedriccione

    cedriccione - 2010-04-26

    Thank's acote!!
    modified the http.conf as you said and it seems to work fine… this is not a big site, so hope the impact will be light!

     
  • Luckyou7

    Luckyou7 - 2010-05-17

    There is a patch apparently that fixes this, I haven't tested it yet but will later.  For now I found this fix recommended in the original forums to add this directive:
    SSPIPerRequestAuth On

    Found at: http://www.gknw.de/phpbb/viewtopic.php?t=226&sid=9f02b14c4a3a17404c2f93b8f54f544b

    The KeepAliveTimeout 1 is not a complete work around.  If a user is able to POST data within the 1 second the KeepAlive persists then the browser (IE) still has the same issue

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.