質問編集履歴
3
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,6 +98,8 @@
|
|
98
98
|
|
99
99
|
###変更後
|
100
100
|
|
101
|
+
```ここに言語を入力
|
102
|
+
|
101
103
|
<?php
|
102
104
|
|
103
105
|
|
@@ -141,3 +143,5 @@
|
|
141
143
|
|
142
144
|
|
143
145
|
$Authentication = new Login_Authentication();
|
146
|
+
|
147
|
+
```
|
2
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -140,4 +140,4 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
|
143
|
-
$Authentication = new Login_Authentication;
|
143
|
+
$Authentication = new Login_Authentication();
|
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -93,3 +93,51 @@
|
|
93
93
|
{
|
94
94
|
|
95
95
|
を試してみたところログインできました
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
###変更後
|
100
|
+
|
101
|
+
<?php
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
class Login_Authentication
|
106
|
+
|
107
|
+
{
|
108
|
+
|
109
|
+
private $session;
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
public function __construct()
|
114
|
+
|
115
|
+
{
|
116
|
+
|
117
|
+
session_start();
|
118
|
+
|
119
|
+
session_regenerate_id(true);
|
120
|
+
|
121
|
+
$this->session = $_SESSION["NAME"]
|
122
|
+
|
123
|
+
$login = $this->session;
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
if (empty($login)) {
|
128
|
+
|
129
|
+
$_SESSION["FAILURE"] = "ログインされていません";
|
130
|
+
|
131
|
+
header("Location: ログイン画面のURL");
|
132
|
+
|
133
|
+
exit();
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
$Authentication = new Login_Authentication;
|