For cookie insert persistence, you can use a codeshare example from Kirk Bauer that might help:
http://devcentral.f5.com/Wiki/default.aspx/iRules/Cookie_Encryption_across_pools_and_services.html
For source address persistence, you can use the "match across" functionality:
SOL5837: Match Across options for session persistence
https://support.f5.com/kb/en-us/solutions/public/5000/800/sol5837.html
Match Across Services
The Match Across Services option is used in the following two configurations:
* Configurations that have multiple virtual servers with the same IP address but have different services specified
* Configurations that have pool members sharing the same address but have different services specified
Aaron