#1
|
||||
|
||||
PHP Code.
Well, I'm using Derpstra's wonderful PHP code (thank you for posting it, Derpstra!) and I was wondering if there was a way to make it where you cannot refresh that page or go back. I'm using this page for when they purchase a certain amount of cash for real money that they're sent to this page to automatically gain their purchased cash. But, I noticed, when you refresh/press go back, they can easily cheat and gain a lot of cash for free. I want to make it where they cannot cheat. Is this possible?
Code: PHP Code:
__________________
|
#2
|
||||
|
||||
You can use PHP sessions to achieve this. It displays a message saying 'Session Expired' if they click the back or forward button on a page they have already visited.
First of all, you need to define the session var in the purchase page, it should look like this below: PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Awesome, thanks again HoF!
__________________
Last edited by Aasixx; 09-17-2012 at 06:37 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for someone to code for me :) | Infernette | Staff Central | 33 | 02-03-2014 05:44 PM |
Could some one code this..? | Abronsyth | Questions and Supports | 5 | 04-13-2012 08:27 PM |
Invite Code/Alpha Code | Shex | Questions and Supports | 0 | 03-07-2011 05:08 AM |
I need a simple code | Cosma | Questions and Supports | 2 | 01-26-2010 05:55 AM |
Need a code to vote | Cosma | Questions and Supports | 0 | 01-25-2010 05:24 PM |
What's New? |
What's Hot? |
What's Popular? |