Changeset 60


Ignore:
Timestamp:
Aug 30, 2003, 1:28:14 AM (21 years ago)
Author:
z0rglub
Message:

Modify the expiration date of the session to correspond to the cookie
expiration date if a cookie is created (else the cookie session is deleted
in PhpWebGallery when modifying the configuration in the admin panel)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r57 r60  
    110110      setcookie( 'id',$page['session_id'],$_POST['cookie_expiration'],
    111111                 cookie_path() );
     112      // update the expiration date of the session
     113      $query = 'UPDATE '.PREFIX_TABLE.'sessions';
     114      $query.= ' SET expiration = '.$_POST['cookie_expiration'];
     115      $query.= " WHERE id = '".$page['session_id']."'";
     116      $query.= ';';
     117      mysql_query( $query );
    112118    }
    113119    // redirection
Note: See TracChangeset for help on using the changeset viewer.