<?php session_start(); // カウンターをリセット $_SESSION["visit_count"] = 0; // counter.phpにリダイレクト header("Location: counter.php"); exit; ?>