I'm a little unclear as to what is going on, but I'll try to help anyway. So the user is taking an online survey and they should not be allowed to go back to a page or refresh a page. You're doing this by logging their IP in a database? or by setting a cookie? With regards to this, it would probably be a better idea to log their IP in a database as not everyone will have cookies turned on.
So what should happen when they click their back button? Should it send them back to the page they should be on? Also, how do you have their IP logged in the database, do you have it log their IP each time they visit a page and have it store both the IP and page they are on?
Charlotte Genevier
Webligo Group
http://www.webligo.com