質問編集履歴
4
修正②
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
```php
|
12
|
+
|
13
|
+
PublicController.php
|
12
14
|
|
13
15
|
const SESSION_KEY = 'aa';
|
14
16
|
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,6 +54,8 @@
|
|
54
54
|
|
55
55
|
```php
|
56
56
|
|
57
|
+
Models/Cookie.php
|
58
|
+
|
57
59
|
public static function findByToken($token, $type) {
|
58
60
|
|
59
61
|
$cookie = self::select('id', 'type', 'uid')->where('token', $token)->first();
|
@@ -102,6 +104,8 @@
|
|
102
104
|
|
103
105
|
```
|
104
106
|
|
107
|
+
Controller.php
|
108
|
+
|
105
109
|
public function beforeFilter($filter, array $options = [])
|
106
110
|
|
107
111
|
{
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -133,3 +133,11 @@
|
|
133
133
|
|
134
134
|
|
135
135
|
eclipseを使用しているのですが、beforeFilterに取り消し線が引かれています。これが原因でnullが返ってきてしまっているのでしょうか?
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
※追記
|
140
|
+
|
141
|
+
set-cookieが消えてしまっているのを確認いたしました。
|
142
|
+
|
143
|
+
原因は不明ですが、どのようにすれば再度set-cookieを作成できますでしょうか?
|
1
タグ更新
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|