में लॉग ऑन है अगर मैं का उपयोग कर की कोशिश की:Zend_Auth जाँच उपयोगकर्ता
// do login if request is posted
if (isset($_POST) && !empty($_POST)) {
// do authencation
...
} else {
// request not posted
// see if already logged in
if (Zend_Auth::getInstance()->hasIdentity()) {
echo "already logged in as: " . Zend_Auth::getInstance()->getIdentity();
}
}
Zend_Auth::getInstance()->hasIdentity()
हमेशा गलत होने लगते हैं ... एक लॉगिन
कुकीज़, सत्र की जांच करें? –
आप अपना प्रमाणीकरण कैसे करते हैं? आप कैसे सुनिश्चित करते हैं कि यह जारी है? अगर आपने सही प्रमाणीकरण किया है, तो क्या सचमुच सच हो जाएगा! – markus
मैंने प्रमाणीकरण के लिए Zend_Auth का उपयोग किया, http://framework.zend.com/manual/en/zend.auth.html#zend.auth.introduction.persistence.default, उस परिणाम के अनुसार-> getIdentity() === $ auth-> getIdentity() – iceangel89