Prompt known user
diff --git a/index.php b/index.php
index 6c1f7c7..0fe24b7 100644
--- a/index.php
+++ b/index.php
@@ -25,6 +25,14 @@
 		<script>
 			$.post("./ajax/getusers.php", function(data, status){
 				$("#list").html(data);
+								
+				userid = <?=isset($_COOKIE['user']) ? $_COOKIE['user'] : -1 ?>;
+		
+				if (userid > 0) {
+					username = $('option[value=' + userid + ']').text();
+					redir = confirm("Has entrat com a usuari " + username + " anteriorment, vols tornar-ho a fer?");
+					if (redir) window.location.href = 'main.php';
+				}
 			});
 			
 			$('select').on('change', function() {