Advertisement:

Author Topic: Cookie name problem  (Read 2488 times)

Offline Jelle Mees

  • Jr. Member
  • **
  • Posts: 140
Cookie name problem
« on: April 26, 2008, 07:28:19 PM »
Because I was already registered at other SimpleMachine forums, I encountered cookie problems.

I think it's best to add  the cookie-name option at the installation so that people don't have to delete their cookies or login with another browser in order to fix the problem.
« Last Edit: April 26, 2008, 07:31:23 PM by Jelle Mees »

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: Cookie name problem
« Reply #1 on: May 01, 2008, 09:24:59 PM »
You don't always get the same cookie name.
SMF uses a number with the cookie eg SMFCookie270
The number isn't random, but passed on this
(from install.php)
Code: [Select]
'cookiename' => 'SMFCookie' . abs(crc32($_POST['db_name'] . preg_replace('~[^A-Za-z0-9_$]~', '', $_POST['db_prefix'])) % 1000),
So it might be unlikely that you'll get too many forums with the same cookie value.