Welcome, Guest. Please Login or Register.
November 24, 2017, 08:56:53 PM
Home Help Search Login Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Topic: Login/Cookie Problems FAQ « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Login/Cookie Problems FAQ  (Read 16433 times)
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster


WWW
Login/Cookie Problems FAQ
« on: April 22, 2003, 05:17:17 PM »
Reply with quote

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.

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.
« Last Edit: April 22, 2003, 05:20:41 PM by Gobalopper » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]


Re:Login/Cookie Problems Faq
« Reply #1 on: April 22, 2003, 05:26:52 PM »
Reply with quote

good faq, cookie monster :)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!


WWW
Re:Login/Cookie Problems Faq
« Reply #2 on: April 23, 2003, 12:30:29 AM »
Reply with quote

Nice FAQs  ;)
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!


WWW
Re:Login/Cookie Problems Faq
« Reply #3 on: April 24, 2003, 09:28:00 AM »
Reply with quote

Split out help requests, lets keep this a clean FAQ.
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth


WWW
Re:Login/Cookie Problems Faq
« Reply #4 on: June 01, 2003, 02:15:32 AM »
Reply with quote

There is already a "login problems" FAQ in the FAQ board:
http://www.yabbse.org/community/index.php?board=135;action=display;threadid=2563
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth


WWW
Re:Login/Cookie Problems Faq
« Reply #5 on: June 01, 2003, 02:19:21 AM »
Reply with quote

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.
« Last Edit: June 01, 2003, 02:19:59 AM by andrea » Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Topic: Login/Cookie Problems FAQ « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.501 seconds with 19 queries.