i have a page that uses for loging in cookies containing the user id. when i log-out,i delete the cookie.the problem is that after loging in,if the user presses the back button he can enter the site and still use some of the scripts that i can't protect with cookies.if after hiting back it hits refresh,he gets kicked out of the site.
???How can i refresh the page automatically when i hit back???? :
Im not sure about refreshing, but you could use session variables. When you log out, you can set a session variable to false, and just check that on every page you want to keep secure. This would work if I understand your question clearly, but im not sure if I do. Let me know.