![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Mad programmer
-
Posts
26 -
Joined
-
Last visited
-
Days Won
1
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
php check if page is open?
in PHP Coding Help
Posted
Have you thought about using sessions?
If the user enters the page the script could set an session (which it checks for at the top to prevent multiple views).
Here's an example if what I mean:
I hope that this is useful to you.
Edit:
Remember! If the user goes out of this page by a link or if your script logic has been processed, you need to UNSET this session.
If you won't do this the user will not be able to access this page anymore. (Except if they wipe their session cookies
)