InterviewSolution
| 1. |
Difference Between Zend_registry And Zend_session? |
|
Answer» The basic DIFFERENCE between these objects is the ‘scope’ in which they are valid: Zend_Session ACTUALLY uses PHP sessions. Data stored using Zend_Session can be accessed in different/all pages. So, if you want to create a variable named ‘UserRole’ in the /auth/login script and want it to be accessible in /auth/redirect, you would use Zend_Session. The basic difference between these objects is the ‘scope’ in which they are valid: Zend_Session actually uses PHP sessions. Data stored using Zend_Session can be accessed in different/all pages. So, if you want to create a variable named ‘UserRole’ in the /auth/login script and want it to be accessible in /auth/redirect, you would use Zend_Session. |
|