Announcement

Collapse
No announcement yet.

404 Post Logout

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    404 Post Logout

    Since upgrade...

    When an account holder logs out a 404 page is displayed.

    #2
    Hello David,

    Try hard coding a URL to display when a customer logs out:

    http://knowledge.actinic.com/users/k...es.html#aCD346
    Regards,

    Toby Blanchard

    Comment


      #3
      Perl

      Toby, the sub routine in V7 appears different to the KB file you quoted (as below) and there is no META refresh tag.


      sub CaccLogout
      {
      my $sHTML;
      #
      # Get business cookie first
      #
      my ($sAccountCookie, $sBaseFile) = ACTINIC::CaccGetCookies();
      if ($$::g_pSetupBlob{'HOMEPAGEURL'})
      {
      #
      # If the home page URL is relative then add the base page
      #
      $sBaseFile = $$::g_pSetupBlob{'HOMEPAGEURL'};
      if ($sBaseFile !~ /http(s?):/)
      {
      $sBaseFile = $::Session->GetBaseUrl() . $sBaseFile;
      }
      }
      #
      # Generate redirect page
      #
      my @Response = ACTINIC::BounceToPagePlain(0, undef, undef, $::g_sWebSiteUrl,
      $::g_sContentUrl, $::g_pSetupBlob, $sBaseFile, \%::g_InputHash);
      if ($Response[0] != $::SUCCESS)
      {
      ACTINIC::ReportError($Response[1], ACTINIC::GetPath());
      }
      $sHTML = $Response[2];
      #
      # Clean up the cookie
      #
      $ACTINIC::B2B->Set('UserIDCookie',".");
      $ACTINIC::B2B->Set('ClearIDCookie','CLEAR');
      #
      # Clear the checkout file
      #
      my (%hashBillAddress, %hashShipAddress, %hashShipInfo, %hashTaxInfo,
      %hashGeneralInfo, %hashPaymentInfo, %hashLocationInfo);
      #
      # Save the session
      #
      my @Response = $::Session->UpdateCheckoutInfo(
      \%hashBillAddress, \%hashShipAddress, \%hashShipInfo, \%hashTaxInfo,
      \%hashGeneralInfo, \%hashPaymentInfo, \%hashLocationInfo);
      #
      # Then write the redirect page and exit
      #
      CAccPrintPageWithOptionalHighlight($sHTML, undef, $::FALSE);
      exit;
      }

      Comment


        #4
        The URL returned

        This is the URL created when you click "Logout":

        http://www.naughtyvend.com&actinic_r...n/bb000000.pl/

        Comment


          #5
          within AccountScripts.pl

          Search for:

          CAccPrintPageWithOptionalHighlight($sHTML, undef, $::FALSE);

          Jest before this line add the following code:

          #
          # Generate redirect page
          #
          $sHTML = "<HTML><HEAD><META HTTP-EQUIV=\"refresh\" CONTENT=\"0;
          URL=http://www.actinic.co.uk/\"></HEAD><BODY></BODY></HTML>";

          Where http://www.actinic.co.uk is my redirect page.

          I will request the KB to be updated.
          Regards,

          Toby Blanchard

          Comment


            #6
            Sorted

            Problem solved, thanks...

            Comment

            Working...
            X