aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--profile.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/profile.php b/profile.php
index 3aa5bb2c0..3c19adf5b 100644
--- a/profile.php
+++ b/profile.php
@@ -109,6 +109,12 @@ if ( isset( $_POST['submit'] ) )
{
setcookie( 'id',$page['session_id'],$_POST['cookie_expiration'],
cookie_path() );
+ // update the expiration date of the session
+ $query = 'UPDATE '.PREFIX_TABLE.'sessions';
+ $query.= ' SET expiration = '.$_POST['cookie_expiration'];
+ $query.= " WHERE id = '".$page['session_id']."'";
+ $query.= ';';
+ mysql_query( $query );
}
// redirection
$url = 'category.php?cat='.$page['cat'].'&expand='.$_GET['expand'];