Bootstrap kullananlar için:


<script>
$(document).ready(function () {
$(document).ready(function () {
// If not 'Confirmed', show #myAlert
if (sessionStorage.Alert !== 'Confirmed') {
$('#myAlert').show();
}
});

$('#myAlert .close').click(function () {
// Set 'Alert' to 'Confirmed' when user click the close button
sessionStorage.Alert = "Confirmed";
$(this).closest('#myAlert').hide();
});
});
</script>


Kaynak: http://stackoverflow.com/questions/29107612/display-alert-once-per-visit