For eg:
http://example.com/login
Here is my site once I logged inside and uses User page example.com/user and when I log outside www.example.com/logout then the session is to be closed.
But if User did not logged in when anyone uses example.com/user the details should not come because I want the sessions to be closed and it should affect different browsers also.
How can it be done?
Zend session management has the option to expire namespaces by ‘hop’ or time-based, you can also write lock the session via Zend_Session::writeclose or destroy it using Zend_Session::destroy() (ref: http://framework.zend.com/manual/en/zend.session.global_session_management.html)
destroy():
writeClose():