includes/sessions.php
changeset 542 5841df0ab575
parent 541 acb7e23b6ffa
child 554 e87390b1f9b0
--- a/includes/sessions.php	Sun May 04 21:57:48 2008 -0400
+++ b/includes/sessions.php	Mon May 05 20:06:37 2008 -0400
@@ -1139,7 +1139,7 @@
     {
       // Stash it in a cookie
       // For now, make the cookie last forever, we can change this in 1.1.x
-      setcookie( 'sid', $session_key, time()+315360000, scriptPath.'/', null, ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ) );
+      setcookie( 'sid', $session_key, time()+15552000, scriptPath.'/', null, ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ) );
       $_COOKIE['sid'] = $session_key;
     }
     // $keyhash is stored in the database, this is for compatibility with the older DB structure
@@ -3223,7 +3223,7 @@
     if ( $dh_supported && $dh_pubkey )
     {
       $code .= <<<EOF
-            if ( frm.$dh_supported.value == 'true' )
+            if ( frm.$dh_supported.value == 'true' && !is_iPhone )
               use_diffiehellman = true;
 EOF;
     }