include('config.php');
session_start();
// Setting cookie to remember last visit
if (isset($_COOKIE['ff-lastvisit'])) {
$date = time();
if ($_COOKIE['ff-lastvisit'] < time() - 3600) {
setcookie("ff-previous", $_COOKIE['ff-lastvisit'], time()+180*86400); }}
setcookie("ff-lastvisit", time(), time()+180*86400);
if (isset($_POST['ff-remember'])) {
// Remember me was checked in one of the forms
$name = $_POST['name'];
$email = $_POST['email'];
// Will remember for 90 days
setcookie("ff-name", $name, time()+90*86400);
setcookie("ff-email", $email, time()+90*86400);
setcookie("ff-remember", 1, time()+90*86400); }if (isset($_POST['mode']) && (($_POST['mode'] == 'postanswer') || ($_POST['mode'] == 'addthread')) && (!isset($_POST['ff-remember']))) {
// A form with Remember me was submitted without 'Remember me', removing cookies
setcookie("ff-name", '', time() - 3600);
setcookie("ff-email", '', time() - 3600);
setcookie("ff-remember", '', time() - 3600); }?>
NoAnxiety Psychology Forum. Let's discuss about anxiety, depression, family issues and anything that may influence positively or negatively our mind. Feel free to open a discussion.
Our forum has just opened. Be the first one to write in it!