Community Forums 

Main Content

Session Timeouts/ causes no email notifications and gives customer declined message even tho' charged

    Jan 20 2010 20:32:45

    #1

    Jennifer

    Join date : 2009-06-25      Posts : 11

    Okay, I just posted something earlier about no email notifications, but it is tied to the other MAJOR issue I'm having. I realize this may not be Mal's problem, but I need some scripting help.

    After searching all day, the last thing I was told was I needed a longer session timeout because while Mal's was sending the order to Verisign (or however its magic works) then Verisign processes the transaction successfully, but Mal's displays a "DECLINED, no response given" message, BUT the person has actually been charged. This has been happening all day.

    So my web hosting company said I needed to create my own custom "php.ini" file with a session timeout customized for my site. But I don't know if my code is right or what....Please look at it and tell me if I have done something wrong...its still not working...customers are getting impatient.

    <!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; charset=UTF-8" />
    <title>Untitled Document</title>
    </head>

    <body>
    session.save_path = /data/tmp<br />
    session.gc_maxlifetime = 1440<br />
    upload_tmp_dir = /data/tmp<br />
    asp_tags = On<br />
    register_globals = Off<br />
    safe_mode = On<br />
    upload_max_filesize = 5M<br />
    output_buffering = 1024<br />
    mime_magic.magicfile = /usr/share/misc/file/magic.mime<br />
    memory_limit = 16M<br />
    include_path = .:/usr/services/vux/lib/php<br />
    allow_url_include = 0<br />
    allow_url_fopen = 0<br />
    extension_dir = /usr/services/vux/php5/lib/php/extensions<br />
    extension = &quot;ZendOptimizer.so&quot;<br />
    zend_extension = /usr/services/vux/php5/lib/php/extensions/ioncube_loader_lin_5.2.so
    </body>
    </html>


    Thanks for any help you can give!



    Jan 21 2010 05:58:26

    #2

    GT

    Join date : 2008-09-18      Posts : 3243

    Doing a little research Jennifer I found this, which if placed at the top of your html before anything else on every page, should be worth a try.

    <?
    session_start();
    setcookie(session_name(), $_COOKIE[session_name()], time()+600, '/');
    ?>

    This gives a time out of 10 minutes.

    Also, I found another snippet:

    <?php

    $Lifetime = 3600;
    $Seperator = (strstr(strtoupper(substr(PHP_OS, 0, 3)), "WIN")) ? "\\" : "/";
    $DirectoryPath = dirname(__FILE__) . "{$Seperator}SessionData";
    is_dir($DirectoryPath) or mkdir($DirectoryPath, 0777);

    if (ini_get("session.use_trans_sid") == true) {
    ini_set("url_rewriter.tags", "");
    ini_set("session.use_trans_sid", false);

    }

    ini_set("session.gc_maxlifetime", $Lifetime);
    ini_set("session.gc_divisor", "1");
    ini_set("session.gc_probability", "1");
    ini_set("session.cookie_lifetime", "0");
    ini_set("session.save_path", $DirectoryPath);
    session_start();

    ?>

    Again, try that at the top of every page.

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Jan 21 2010 15:48:43

    #3

    Jennifer

    Join date : 2009-06-25      Posts : 11

    Okay thank you....I'm still having the timeout problem and Mal told me himself it was a timeout issue with Payflow Link because no other Payflow Link ID's he tested had my problem, but here is my issue.

    I spoke with Paypal and they have no timeout as they say....so they said to come back to you to have my timeout increased. He said that he is seeing the timeout on my particular cart as 30 seconds and it needs to be 90-120 seconds. Can I change this myself in the shopping cart, because the timeout issue happens between the Mal's server and the Paypal server, not mine.



    Jan 21 2010 15:53:22

    #4

    Jennifer

    Join date : 2009-06-25      Posts : 11

    tried the code didn't fix the problem