Zend Namespace - Check if Session Exists

后端 未结 2 887
执念已碎
执念已碎 2021-01-15 16:00

All,

I am using Zend Framework and Zend_Session to do global session management for my application. I plan to clear all sessions on logout and hence am using the fol

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-15 16:30

    Not really answers your question about the error, but is beneficial for the question:

    $nsName = 'MyNamespace';
    if (Zend_Session::namespaceIsset($nsName)) {
      echo $nsName.' exists';
    }
    

提交回复
热议问题