YaBB SE Community

English User Help => English Help => Topic started by: Gobalopper on April 22, 2003, 05:17:17 PM

Title: Login/Cookie Problems FAQ
Post by: Gobalopper on April 22, 2003, 05:17:17 PM
If you are having problems with not being able to stay logged in here are some of the common reasons and possible fixes.

PHP Version
As stated on the download page you need to have PHP 4.1.0 or greater installed. If you don't you won't be able to login. If you don't know what version you have create a phpinfo() page (http://www.yabbse.org/community/index.php?board=135;action=display;threadid=15154).

No $cookiename
Check your Settings.php file for a variable by the name of $cookiename. If you don't see that then you need to add it. This problem usually arises when upgrading to 1.5.1 from past versions and not running the upgrade script.

Bad characters
You can only use alphanumeric characters for the name of your cookie. Other characters are likely to cause problems.

High Security Levels
If you or your users are running IE you will need to have your security lowered to the medium setting or add your domain to the allowed sites list.

Time Problems
If your server time is wrong or the users time is off then the cookie may not save properly. Be sure both are correct.

Wrong Domain
Sometimes the cookie saves under the wrong domain. If this is the case try selecting store cookies locally in the admin mod settings page.

Different YaBBSE Versions
Your YaBB files should all be the same version. Do a detailed version check or re-upload the Sources directory to be sure.


These are all the common problems that come to mind, post below if I've missed any.
Title: Re:Login/Cookie Problems Faq
Post by: Spaceman-Spiff on April 22, 2003, 05:26:52 PM
good faq, cookie monster :)
Title: Re:Login/Cookie Problems Faq
Post by: Nonya on April 23, 2003, 12:30:29 AM
Nice FAQs  ;)
Title: Re:Login/Cookie Problems Faq
Post by: David on April 24, 2003, 09:28:00 AM
Split out help requests, lets keep this a clean FAQ.
Title: Re:Login/Cookie Problems Faq
Post by: andrea on June 01, 2003, 02:15:32 AM
There is already a "login problems" FAQ in the FAQ board:
http://www.yabbse.org/community/index.php?board=135;action=display;threadid=2563 (http://www.yabbse.org/community/index.php?board=135;action=display;threadid=2563)
Title: Re:Login/Cookie Problems Faq
Post by: andrea on June 01, 2003, 02:19:21 AM
If you tried all points listed above and this did not help:

Check your phpinfo, well possible you have an outdated php version such as 4.0.6.

The code quoted below will enable login for an 1.5.3 board on php 4.0.6.

Better move to another host when you cannot fix the login than to downgrade. Your responsibility, you were told to stay on 1.5.3.

Lets end that discussion in this thread here. This is a FAQ thread, open a support request in the other help or in the installer help forum, somebody will help you to find that login mod code.

Edit: This code should fix the login problem for YaBB SE 1.5.3 on PHP 4.0.6:

jo,

dazu stand mal was bei den engländern oben :)
ich bilde mir ein das es die funktion load_cookie betrifft, war irgentwas einzutragen, ich weiß aber nichmehr genau was, drum poste ich mal die ganze fnkt. her, wie sie bei mir läuft:
Code: [Select]
function LoadCookie()
{
  global $password, $username, $cookiename, $HTTP_COOKIE_VARS;

  if (isset($HTTP_COOKIE_VARS[$cookiename]))
  {
      list($username, $password) = @unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename]));
      $username = ($username != "") ? $username : 'Guest';
  }
        else
        {
                $password = '';
                $username = 'Guest';
        }
}

gruß pitti


You have to replace the function LoadCookie by the above code.