PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Quick Start

This particular storage adapter is used by default with Zend_Http_UserAgent. As such, you will benefit from it from the outset without any real configuration necessary.

You can alter the behavior slightly, however, by altering the namespace used, and the key (or member) in which data is written. You may do so by specifying the browser_type (mapped to namespace) and member options in your configuration.

resources.useragent.storage.adapter = "Session"
resources.useragent.storage.options.browser_type = "all"
resources.useragent.storage.options.member = "data"

Typically, you will not pass the browser_type option, and instead let this be populated by the value discovered by the UserAgent class.

Zend Framework