Login issues while debug is activated
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 202
- Forks
- 147
- Avg merge
- 1h 54m
- Merged PRs (30d)
- 1
Description
I have the basic template installed with a module "admin". In admin module I specify the session name
Yii::$app->session->name = 'back';
In the main config I specify
'session'=>[
'name'=>'front'
],
On both sides (back and front) I made a login form. If the debug module is activated I cannot login within the admin module, only in the "front", and when I go to the admin module I get the user logged from the front.
If I deactivate the debug module, I can successfully login independent from the admin or from the front module.
This happens on yii-debug >= 2.0.10. On 2.0.9 I can login in admin but it shows as a "guest" under the debug bar.
Additional info
| Q | A |
|---|---|
| Yii version | 2.0.15.1 |
| PHP version | 7.0.30 |
| Operating system | Debian 9.5 |
Contributor guide
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
Start by reproducing the issue with the basic template, separate front and admin session names, and the debug module enabled at the reported versions. Verify that front and admin logins remain independent and that the debug bar shows the correct user rather than a guest.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100