It you restricted to login-required then that page is cached by your browser.
<meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> <meta http-equiv="refresh" content="1">
i am very new to this seam framework, so i don't know where to write this code exactly. plz tell me in which file i have to write this code
It is not a seam related issue. It is about your xhtml/html/jsp or what page header.
Really your idea is working well but the page is refreshing and stopping, what to do for that plz make it as soon as possible.
Sorry I dont understand what is your problem. Try to be a bit more descriptive if you want help. beside most of your issue will find solution using google.