Stream Personalization implements session management by caching per user specific information like HLS sequence number, ad decisioning to give a few examples.

To cache this information, an audience cache pattern must be configured, acting as a unique key to keep track of user information.

To configure an audience cache pattern, follow these steps:

1. Select the **Advanced** tab.

2. Configure the following settings.

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">Audience cache pattern</td>
         <td style="text-align: left">Configure the audience cache pattern, usually leveraging query parameters from the viewer request.<br>In our example below, we assume that the viewer manifest request includes a set of query parameters:<br><code>http://cdn.example/live-hls/channel1/index.m3u8?userID=1234&amp;deviceID=android&amp;...</code><br>Values 1234 and android are accessed using the following pattern: <code>{query.userID}</code> and <code>{query.deviceID}</code>. The resulting audience cache would thus look like: <code>1234_android</code>. This will serve as a key to store session information for manifest manipulation purposes.</td>
       </tr>
       <tr>
         <td style="text-align: left">Signing key</td>
         <td style="text-align: left">Signing key used for manifest signature.</td>
       </tr>
     </tbody>
   </table>
