Plötzlich: Ihr Browser erlaubt keine Cookies

Aus Wiki | xtcModified eCommerce Shopsoftware

Ich habe in meinem Testshop plötzlich beim Loginversuch usw. mit allen Browsern die Meldung "Ihr Browser erlaubt keine Cookies" (Aufruf der cookie_usage.php).

Ich habe in der config unverändert "cookie usage bevorzugen", den rest auf false und in der configure.php ist es egal, ob ich die Sessions in mysql oder in /tmp speichere. Ich habe nichts bewusst geändert und das lief jetzt einige Tage ganz normal.

von HHGAG am Do 9. Apr 2009, 21:45

Guck ob Dein Browser für die Domain auch wirklich Cookies akzeptiert, ansonsten mal folgendes ausprobieren:

inc/xtc_get_top_level_domain.inc.php

Inhalt hier mit ersetzen:

<?php
/* -----------------------------------------------------------------------------------------
   $Id: xtc_get_top_level_domain.inc.php 899 2005-04-29 02:40:57Z hhgag $   
 
   XT-Commerce - community made shopping
   http://www.xt-commerce.com
 
   Copyright (c) 2003 XT-Commerce
   -----------------------------------------------------------------------------------------
   based on:
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(general.php,v 1.225 2003/05/29); http://www.oscommerce.com
   (c) 2003    nextcommerce (xtc_get_top_level_domain.inc.php,v 1.3 2003/08/13); http://www.nextcommerce.org
 
   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/
 
function xtc_get_top_level_domain($url) {
    if (strpos($url, '://')) {
      $url = parse_url($url);
      $url = $url['host'];
    }
 
    $domain_array = explode('.', $url);
    $domain_size = sizeof($domain_array);
 
    if ($domain_size > 1) {
      if (is_numeric($domain_array[$domain_size-2]) && is_numeric($domain_array[$domain_size-1])) {
        return false;
      } else {
        return $domain_array[$domain_size-2] . '.' . $domain_array[$domain_size-1];
      }
    } else {
      return false;
    }
  }
?>
           
anything