Changeset 691 for devel/login

Show
Ignore:
Timestamp:
11/05/06 05:46:27 (2 years ago)
Author:
sven
Message:

try to detect if we're in a subdirectory, and define $CFG->cookiepath with that path to allow elgg-specific cookies

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/login/logout.php

    r269 r691  
    1919 
    2020if (isset($_COOKIE[session_name()])) { 
    21     setcookie(session_name(), '', time()-84600, '/'); 
     21    setcookie(session_name(), '', time()-84600, $CFG->cookiepath); 
    2222} 
    2323 
    2424// Remove the any AUTH_COOKIE persistent logins 
    25 setcookie(AUTH_COOKIE, '', time()-84600, '/'); 
     25setcookie(AUTH_COOKIE, '', time()-84600, $CFG->cookiepath); 
    2626 
    2727session_destroy();