Q: Site navigation, redirect and PRG Pattern

Hi,

today I read an article about the PRG Pattern and after that I tried "F5" on every page of my webproject. I found out that I have issues if I log out an user and try to refresh the page. The problem is that the "F5" tries to reload the old user-page (but the user already logged out). Does the PRG Pattern solve such issues or have I simply set all navigation-rules to "redirect yes". What happens if I use redirect? Perhaps the same like I would use the PRG Pattern? Do you use always redirect ? Are there pitfalls if I use/don't use redirect?

Thnx

Alex

[584 byte] By [Troilusa] at [2007-11-27 9:42:15]
# 1

Hi Alex,

redirecting is the first approach to eliminate such problems. I磛e seen many web applications where a logged out user can log in by just refreshing the page. The core thing to do is to redirect to a page where you just can GET data and not POST data.

A very good article concerning this problem can be found here:

http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost

hope this helps,

ferudun

Message was edited by:

ferudun

feruduna at 2007-7-12 23:45:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...