1 Reply Latest reply on Aug 4, 2008 9:33 AM by (shane_mosier)

    I am getting errors with my logout transaction - part 2

      This is continued from my last post: <br /> <br />if (isset($_GET['totalRows_Recordset2'])) { <br /> $totalRows_Recordset2 = $_GET['totalRows_Recordset2']; <br />} else { <br /> $all_Recordset2 = mysql_query($query_Recordset2); <br /> $totalRows_Recordset2 = mysql_num_rows($all_Recordset2); <br />} <br />$totalPages_Recordset2 = ceil($totalRows_Recordset2/$maxRows_Recordset2)-1; <br /> <br />$queryString_Recordset2 = ""; <br />if (!empty($_SERVER['QUERY_STRING'])) { <br /> $params = explode("&amp;", $_SERVER['QUERY_STRING']); <br /> $newParams = array(); <br /> foreach ($params as $param) { <br /> if (stristr($param, "pageNum_Recordset2") == false &amp;&amp; <br /> stristr($param, "totalRows_Recordset2") == false) { <br /> array_push($newParams, $param); <br /> } <br /> } <br /> if (count($newParams) != 0) { <br /> $queryString_Recordset2 = "&amp;" . htmlentities(implode("&amp;", $newParams)); <br /> } <br />} <br />$queryString_Recordset2 = sprintf("&amp;totalRows_Recordset2=%d%s", $totalRows_Recordset2, $queryString_Recordset2); <br /> <br />// Get the transaction recordset <br />$rscustom = $tNGs-&gt;getRecordset("custom"); <br />$row_rscustom = mysql_fetch_assoc($rscustom); <br />$totalRows_rscustom = mysql_num_rows($rscustom); <br /> <br />?&gt; <br /> <br /> <br /> <br /> <br /> <br /> <!--<br />.style1 {color: #006699}<br />--> <br /> <br /> <br /> <!--<br />body {<br /> margin-left: 0px;<br /> margin-top: 0px;<br /> margin-right: 0px;<br /> margin-bottom: 0px;<br />}<br />--> <br /> <br /> <br /> <script src="../includes/common/js/base.js" type="text/javascript"></script> <br /> <script src="../includes/common/js/utility.js" type="text/javascript"></script> <br /> <script src="../includes/skins/style.js" type="text/javascript"></script> <br /> <br /> <br /> <br /> <br />The link in the body: <br /> <br /> <br /> <br />Any help would be greatly appreciated. <br /> <br />Thank you, <br /> <br />Scott <table> <tr> <td width="50%" align="right" valign="top"> <a href="user.account.php">Manage My Account</a> | <br /> <?php<br /> echo $tNGs->getErrorMsg();<br />?> <br /> <a href="%3C?php%20echo%20$logoutTransaction-%3EgetLogoutLink();%20?%3E">Logout</a></td> </tr> </table>
        • 1. Re: I am getting errors with my logout transaction - part 2
          Level 1
          Scott,

          I have had some weird issues with the logout.

          Waleed has a tutorial for an Alternative Logout Transaction that might help:

          http://www.adobeforums.com/webx/.59b5f901

          You could also do a manual logout.

          Make the logout link go to a logout.php page.

          On this page you would have some basic code like this:

          session_destroy();
          header("Location: myredirect.php");
          exit;

          This would destroy the SESSION data and redirect the user to myredirect.php

          Hope this helps.

          Shane