MC (Microcommunity) Search and Match Session Monitoring
- Register Group with Captcha
- View Group Profile
- Edit Group Profile
- MC (Microcommunity) Search and Match
- MC (Microcommunity) Search and Match — Security
- MC (Microcommunity) Search and Match — JavaScript
- MC (Microcommunity) Search and Match — Form
- MC (Microcommunity) Search and Match — PHP
- MC Questionnaire
- Microcommunity (MC) Registration Script — Enter Questionnaire Data in Database
- MC Search and Match Profile and Account Management
- Login to MC Search and Match Profile and Account Management
- Logout of MC Search and Match Profile and Account Management
- MC Questionnaire Login
- MC Questionnaire Info
- Delete Group Account
- Forgot User Name
- Forgot Password
- Form to Send Private Message
- Send Private Message
- Private Message Outbox
- Private Message Inbox
- Delete Private Message from Inbox
- Delete Private Message from Outbox
- Private Message Logout
- Private Message Session Monitoring
- MC (Microcommunity) Search and Match Session Monitoring
- Configure File for Database Connection
- Captcha Script for Registration and Login
This script is called checkid.php
First, we use the session_start() function. Then we ensure that the session id variable is set by checking it, and send the user to Register Group with Captcha if it is not, after running the session_unset() function to free all of the user's session variables and session_destroy() to destroy all data registered to the user's session. Then we use header('location: register-with-captcha.php') to send the user to Register Group with Captcha.
Finally we use an else statement if the session id variable IS set, because the session is OK and the user is logged
in. The else does not do a thing except be an alternative to all of the above, which is why the else leads only to a comment.
The script below is called: checkid.php
<?php
session_start();
if(!isset($_SESSION['sessionid'])){
session_unset();
session_destroy();
header('location: register-with-captcha.php');
}else{
// session logged
}
?>