Changeset 2316
- Timestamp:
- 07/20/2009 07:09:30 AM (17 years ago)
- File:
-
- 1 edited
-
branches/0.9/bb-includes/pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/bb-includes/pluggable.php
r1888 r2316 190 190 do_action('set_auth_cookie', $cookie, $expire); 191 191 192 setcookie($bb->authcookie, $cookie, $expire, $bb->cookiepath, $bb->cookiedomain); 193 if ( $bb->cookiepath != $bb->sitecookiepath ) 194 setcookie($bb->authcookie, $cookie, $expire, $bb->sitecookiepath, $bb->cookiedomain); 192 // Set httponly if the php version is >= 5.2.0 193 if ( version_compare( phpversion(), '5.2.0', 'ge' ) ) { 194 setcookie( $bb->authcookie, $cookie, $expire, $bb->cookiepath, $bb->cookiedomain, $secure, true ); 195 if ( $bb->cookiepath != $bb->sitecookiepath ) { 196 setcookie( $bb->authcookie, $cookie, $expire, $bb->sitecookiepath, $bb->cookiedomain, $secure, true ); 197 } 198 } else { 199 $_domain = ( empty( $bb->cookiedomain ) ) ? $bb->cookiedomain : $bb->cookiedomain . '; HttpOnly'; 200 setcookie( $bb->authcookie, $cookie, $expire, $bb->cookiepath, $_domain, $secure ); 201 if ( $bb->cookiepath != $bb->sitecookiepath ) { 202 setcookie( $bb->authcookie, $cookie, $expire, $bb->sitecookiepath, $_domain, $secure ); 203 } 204 } 195 205 } 196 206 endif;
Note: See TracChangeset
for help on using the changeset viewer.