View Full Version : One time page display
guruguy
Jun 23rd 2007, 6:08 am
I'm looking for a simple script that allows a page to be viewed only once from the users computer. I'm thinking something that drops a cookie, and doesn't load the page (alert box + redirect) if a cookie is already detected. As simple as it is I don't know javascript and I have tried making this using other resources but it doesn't work. Anyone know where I can find something like this.
it career
Jun 23rd 2007, 8:10 am
Put an infinite loop in case you catch user trying to reload.
UnrealEd
Jun 23rd 2007, 11:47 am
that's probably the worst solution :p
an infinite loop may cause the browser to crash, and that's not exacty what the user wants ;)
It's like you said: use a cookie. You will have to use a serversided language to get the ip of the user.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.