Can You Switch PHP Sessions In a Session?

前端 未结 7 1763
情深已故
情深已故 2020-12-09 19:31

I have two apps that I\'m trying to unify. One was written by me and another is a CMS I am using. My authentication happens in the one I coded and I\'d like my CMS to know t

7条回答
  •  庸人自扰
    2020-12-09 20:14

    Zend_Session offers Namespacing for sessions.

    Zend_Session_Namespace instances are accessor objects for namespaced slices of $_SESSION. The Zend_Session component wraps the existing PHP ext/session with an administration and management interface, as well as providing an API for Zend_Session_Namespace to persist session namespaces. Zend_Session_Namespace provides a standardized, object-oriented interface for working with namespaces persisted inside PHP's standard session mechanism. Support exists for both anonymous and authenticated (e.g., "login") session namespaces.

提交回复
热议问题