同一控制器,不同的Action,Session没有生效?
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.7k
- Forks
- 253
- PR merge metrics
- No merged PRs in 30d
Description
是我对Session 用法理解错误吗?
class adminAction extends baseAction{
public function action_newcode()
{
App::$base->session->logincode = 'JH2S';
// App::$base->session->close();
}
public function action_login()
{
echo App::$base->session->logincode; //这里没有输出action_newcode的‘logincode‘;
$view = $this->response->display('admin/login', $params);
$view->title = '后台登陆界面';
return $view;
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the sequence using adminAction::action_newcode and adminAction::action_login, then inspect the lifecycle of App::$base->session between those entry points. Review the existing 18-comment discussion for any agreed expectation. Done means the session behavior is explained and the issue's reported discrepancy is either resolved or clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100