my %session; # Connect to old session with ID $session_id tie %session, 'Apache::Session::MySQL', $session_id; # Change session data $session{user}{state} = 'Texas'; # If $session{user}{state} already existed in the data store, it will not be updated. # Therefore we force an update by changing the top level of the session hash. $session{TIMESTAMP} = time;