Login   Register  
PHP Classes
elePHPant
Icontem

File: LoginCheck.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of raja  >  Login and DB classes quick start  >  LoginCheck.php  >  Download  
File: LoginCheck.php
Role: Auxiliary script
Content type: text/plain
Description: little login check after form post
Class: Login and DB classes quick start
Authenticate users with records in MySQL database
Author: By
Last change:
Date: 6 years ago
Size: 346 bytes
 

Contents

Class file image Download
<?php
require_once dirname(__FILE__)."/../includes/SqlFunctions.php";
StartSessionIfNot();
if(isset(
$_SESSION['UserName']) && $_SESSION['User']=="yes"){
$uname=$_SESSION['UserName'];
$uid=$_SESSION['UserId'];
// nothing to do
}else{
    
$msg="You are not logged in! Please Login</a>";
    
header("Location: index.php?msg=$msg");
    exit;
}
?>