Спасибо
Я поместил этот код в свой function.php`
Код: Выделить всё
if(!session_id()) {
session_start();
}
Код: Выделить всё
and in a php page I created to validate the a loginКод: Выделить всё
if($row['userPwd']==$data['userPwd']){
$_SESSION['UserID'] = $row['userID'];
header("Location: DestineURL");
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... ss-website
Мобильная версия