You are on page 1of 2

Topic

You can configure a cookie persistence profile that uses session cookies. A session cookie is a
transient cookie that is erased when the client browser session is closed. The session cookie
is typically stored in temporary memory on the client system. One advantage to configuring a
session cookie persistence profile is that a session cookie will not expire after a timeout
period; the session cookie expires when the browser is closed.
Note: Some browsers implement a session restore feature that saves your browser session data
after the system becomes unresponsive. The browser data is stored on the client system hard drive
and restored when the browser is restarted.

Description
Using the Configuration utility to configure a session cookie persistence profile

1. Log in to the Configuration utility.


2. Navigate to Local Traffic > Profiles.
3. Click the Persistence menu.
4. Click Create.
5. Type a name for the profile.
6. From the Persistence Type menu, select Cookie.
7. In the Configuration section, select the check box next to Cookie Method.
8. Choose either HTTP Cookie Insert, or HTTP Cookie Rewrite.
9. Select the check box next to Expiration.
10. Ensure that Session Cookie is checked.
11. Click Finished.

Using the tmsh utility to configure a session cookie persistence profile

1. Log in to the Traffic Management Shell (tmsh) by typing the following command:

tmsh

2. To configure a cookie persistence profile using Session Cookie and the default method type
of HTTP Cookie Insert, use the following command syntax:

create /ltm persistence cookie <name of profile> defaults-from cookie


For example:
create /ltm persistence cookie cookie_one defaults-from cookie

3. To configure a cookie persistence profile using Session Cookie and a method type of HTTP
Cookie Rewrite, use the following command syntax:

create /ltm persistence cookie <name of profile> defaults-from cookie


method rewrite
For example:
create /ltm persistence cookie cookie_one defaults-from cookie method
rewrite
4. To save the new configuration, type the following command:

save /sys config


You must now associate the new persistence profile with the virtual server.
Note: For more information about the different types of HTTP cookie persistence you can configure
your BIG-IP system to use, refer to the Cookie persistence section in the Enabling Session
Persistence chapter of the Configuration Guide for BIG-IP Local Traffic Manager.
Note: For information about how to locate F5 product guides, refer to K12453464: Finding product
documentation on AskF5

You might also like