I am facing an issue with my website: In my jsp file, I have created a string variable `delete` and initialized it as null. When a user clicks the delete button, I check if `delete` is not null in the session. If `session_delete` is not null, then I remove the `delete` attribute from the session and display an alert. However, when the user navigates to another page and then clicks the back button on the browser, the alert appears again. Could you please explain why this happens when the user clicks the back button on the browser? Thank you for your help.
String success_add= null;
if(session.getAttribute("success_delete")!=null)
{
success_delete= session.getAttribute("success_delete").toString();
session.removeAttribute("success_delete");
if(success_delete.equals("1"))
{
%>
<script>
alertify.alert("Delete success");
</script>
<%
}
}