Skip to content

Instantly share code, notes, and snippets.

@AlecZine
AlecZine / SimpleAuth.php
Created June 8, 2018 05:24 — forked from heiswayi/SimpleAuth.php
Simple PHP script to protect any PHP page using session
<?php
/*
* Filename: SimpleAuth.php
* Version: 1.0
* Author: Heiswayi Nrird
* Dscription: Simple PHP script to protect any PHP page using session
* Website: https://heiswayi.nrird.com
*
* HOW TO USE
* ==========
<VirtualHost leyenda.do:80>
DocumentRoot C:\xampp\htdocs
ServerName leyenda.do
<Directory C:\xampp\htdocs>
AllowOverride All
Allow from All
</Directory>
</VirtualHost>