Browse Source

Revert "! Part of cookie check was removed with php < 5 edits [4506]"

This reverts commit 2307761479c132a19bdbb893505d95598c405328.

Conflicts:

	Sources/Subs-Auth.php
Spuds 13 years ago
parent
commit
84decfc8c8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Sources/Subs-Auth.php

+ 3 - 0
Sources/Subs-Auth.php

@@ -99,6 +99,7 @@ function setLoginCookie($cookie_length, $id, $password = '')
 		session_regenerate_id();
 		$_SESSION = $oldSessionData;
 
+<<<<<<< HEAD
 		// Make sure to store the cookie of the new session.
 		if (!isset($_COOKIE[session_name()]) || $_COOKIE[session_name()] != session_id())
 		{
@@ -106,6 +107,8 @@ function setLoginCookie($cookie_length, $id, $password = '')
 			smf_setcookie(session_name(), session_id(), time() + (empty($sessionCookieLifetime) ? $cookie_length : $sessionCookieLifetime), $cookie_url[1], $cookie_url[0], !empty($modSettings['secureCookies']));
 		}
 
+=======
+>>>>>>> parent of 2307761... ! Part of cookie check was removed with php < 5 edits [4506]
 		$_SESSION['login_' . $cookiename] = $data;
 	}
 }