Forum Discussion
JRahm
Admin
Jan 22, 2026AppWorld DC Booth Kiosk Generator
Welcome to AppWorld, community! You may or may not be with us in person, but you can watch this thread for iRules that are either generated or described by the Distributed Cloud AI Assistant.
JimmyPackets
Cirrus
Mar 11, 2026AI-Generated iRule
Prompt: Encrypt a session cookie value on the response and decrypt it on subsequent requests for cookie security
Generated iRule (by F5 Distributed Cloud AI Assistant):
when HTTP_RESPONSE {
# Encrypt the session cookie value before sending it to the client
set session_cookie [HTTP::cookie "session"]
set encrypted_cookie [encrypt $session_cookie] # Call to a custom encrypt function
HTTP::cookie "session" $encrypted_cookie
}
when HTTP_REQUEST {
# Decrypt the session cookie value on subsequent requests
set encrypted_cookie [HTTP::cookie "session"]
if { $encrypted_cookie ne "" } {
set session_cookie [decrypt $encrypted_cookie] # Call to a custom decrypt function
HTTP::cookie "session" $session_cookie
}
}Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects