Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i need help. I am building a game website. So, in order to play the game one should pay the money. So, every time after the successful payment the page will direct to the game so that the people can play in that website. so how should i create the unique web page every time only if the successful payment. If they reload the game page without the payment, the page should not be work. How could i do that ?

What I have tried:

ghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Posted
Updated 17-Mar-16 9:12am
Comments
OriginalGriff 13-Mar-16 5:07am    
And?
What have you tried? "ghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh" tells us nothing.
Where are you stuck?
What help do you need?
Richard MacCutchan 13-Mar-16 6:33am    
You have tagged this question C, C#, Javascript, Java, PHP, Node.js. It is unlikely to be all of them, please mark it clearly.
johannesnestler 17-Mar-16 11:26am    
sesssssssssssssion?

1 solution

Creating a "unique" page for each paying customer is easily defeated by copying the URL to another browser.

I agree with Johannes. You need to send a cookie to the browser to establish a session. The page hosting your game must validate the cookie. Your code must track valid cookies and presumably expire those cookies after a period of time.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900