Giải pháp thiết kế web động với PHP - p 30
57
lượt xem 11
download
lượt xem 11
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
PAGES THAT REMEMBER: SIMPLE LOGIN AND MULTIPAGE FORMS session_regenerate_id(); break; } The time() function returns a current timestamp. By storing it in $_SESSION['start'], it becomes available to every page that begins with session_start(). 2. When a session times out, just dumping a user unceremoniously back at the login screen isn t very friendly, so it s a good idea to explain what s happened. In login.php, add the code highlighted in bold to the PHP block immediately after the opening tag (around lines 22–26): $error"; } elseif (isset($_GET['expired'])) { ? Your session has expired. Please log in again. The...
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
CÓ THỂ BẠN MUỐN DOWNLOAD