Hi Mac
i have utilized SESSIONS_LoggedIn extensive on my application, i noticed on the free hosting site these sessions at times it times-out because of connection to mysql,
i have used the SESSIONS to validate loggins before any update, listing, insert and delete, this works well on my local machine because the connection is stable.
i can remove sessions but this will mean that registrations and login becomes useless because the pages can be access directly and update can be made if they are not defined.
my question are:
1. Will i be penalised for having SESSIONS timing out because of the free hosting site?.
2. i have already submitted my portfolio and i noticed that the only irritation is having to log-in again because of sessions that are logged-out at times because of the connection, do i need to change this approach to suite Free-hosting Site?
E.G.
LIST
<?
include "connect.php";
if(!empty($_SESSION['LoggedIn'])){
$strSQL = "SELECT * FROM admins";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"
;?>
E.G
DELETE
<?php
include "connect.php";
if(isset($_GET['id']) && !empty($_SESSION['LoggedIn'])){
$id = $_GET['id'];
$result = mysql_query("DELETE FROM admins WHERE id=$id"
;
if($result !== false) {
header("Location: deletesuccess.php"
;
}
}else {
header("Location: deletefail.php"
;
}
?>