![]() |
|
|
|
|
|
|
|
|
3
20th November 21:53
External User
Posts: 1
|
Set a session variable after the login has been confirmed and check for
it at the beginning of every page. If it's not set, then redirect to login. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com |
|
|
5
20th November 21:53
External User
Posts: 1
|
Set a session variable after the login has been confirmed and check for
it at the beginning of every page. If it's not set, then redirect to login. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com |
|
|
6
20th November 21:53
External User
Posts: 1
|
checkLogin.php
<?php session_start(); if ($_SESSION['login'] != true) { header("Location: login.php"); exit(); } ?> info.php <?php include_once('checkLogin.php'); ....Code goes here... ?> login.php <?php session_start(); if ($_POST['Username'] == *Check Credentials Here*) { $_SESSION['login'] = true; header("Location: info.php"); exit(); } //Output Form Here ?> Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com |
|
|
8
20th November 21:53
External User
Posts: 1
|
checkLogin.php
<?php session_start(); if ($_SESSION['login'] != true) { header("Location: login.php"); exit(); } ?> info.php <?php include_once('checkLogin.php'); ....Code goes here... ?> login.php <?php session_start(); if ($_POST['Username'] == *Check Credentials Here*) { $_SESSION['login'] = true; header("Location: info.php"); exit(); } //Output Form Here ?> Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com |
|
|
9
20th November 21:54
External User
Posts: 1
|
Ref:
It you will look, this is what I prepared for you: http://webbytedd.com/b1/simple-session/ Everything you need is there. Hope this helps, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|
10
20th November 21:54
External User
Posts: 1
|
Ref:
It you will look, this is what I prepared for you: http://webbytedd.com/b1/simple-session/ Everything you need is there. Hope this helps, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
| Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php |