hi,
I need some help coding a website. The process is listed below:
I direct a user to a URL to download a file e.g ##.##/download1 (Page1)
This page will automatically redirect the user to a newly created page based on the users unique code/ ip. The user can then download the file on this new URL e.g. ##.##/download1/user1 (Page2)
Once a user has been on this page and downloaded the file I don't want anyone else to be able to access that link. So if another user visits 'page2' they cant access the page.
Whats the best way to do this??
And how would I set up a system where a new URL is created based on the users ID??
I was thinking of having a script that takes the ip address / creates a cookie from 'page1'. When the user goes to 'page2' it looks for this ip/cookie and if it matches the user stays on this page. If its not correct they cant access the page. Is that the correct way of doing it?
please get intouch if you could help
I need some help coding a website. The process is listed below:
I direct a user to a URL to download a file e.g ##.##/download1 (Page1)
This page will automatically redirect the user to a newly created page based on the users unique code/ ip. The user can then download the file on this new URL e.g. ##.##/download1/user1 (Page2)
Once a user has been on this page and downloaded the file I don't want anyone else to be able to access that link. So if another user visits 'page2' they cant access the page.
Whats the best way to do this??
And how would I set up a system where a new URL is created based on the users ID??
I was thinking of having a script that takes the ip address / creates a cookie from 'page1'. When the user goes to 'page2' it looks for this ip/cookie and if it matches the user stays on this page. If its not correct they cant access the page. Is that the correct way of doing it?
please get intouch if you could help