Changeset 1823 in subversion


Ignore:
Timestamp:
Sep 18, 2008 7:54:14 AM (5 years ago)
Author:
robin
Message:

Bind cookie gotten over HTTPS to HTTPS only (#1485336).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/session.inc

    r1685 r1823  
    185185 
    186186  setcookie(session_name(), '', time() - 3600); 
    187   setcookie(session_name(), $random, $lifetime, $cookie['path'], $cookie['domain']); 
     187  setcookie(session_name(), $random, $lifetime, $cookie['path'], $cookie['domain'], 
     188            $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off')); 
    188189 
    189190  return true; 
Note: See TracChangeset for help on using the changeset viewer.