Question
Difference between zend_registry and zend_session

Answers

The basic difference between these objects is the ‘scope’ in which they are valid:
a) Zend_Registry : request scope
b) Zend_Session : session scope

Zend_Registry is used to store objects/values for the current request. In short, anything that you commit to Registry in index.php can be accessed from other controllers/actions (because EVERY request is first routed to the index.php bootstrapper via the .htaccess file). Config parameters and db parameters are generally prepared for global use using the Zend_Registry object.
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.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Which city hosts the headquarters of the International Red Cross and Red Crescent Movement?
  • Q Who defines the account groups and give some tables in sap sd for customer master?
  • Q Explain about css1?
  • Q The person to whom Gopalakrishna Gokhale acknowledged as his spiritual and political Guru”:
  • Q The Dual Economy is a mixture of :
  • Q Give an example of file endpoint in mule ?
  • Q Where is the headquarters of Sumitomo Mitsui Banking Corporation
  • Q Difference between == and === operator in php. ?
  • Q Discuss the application of the information technology in the integration of business and technological aspect
  • Q How does facilitated diffusion present similarities with enzymatic chemical reactions?
  • Q If the President wants to resign from his office, he may do so by writing to: