I am trying to use sessions for the first time as a way to stop leechers.
I have an album.php file and a play.php file.
The album.php will start a session and register a variable such as
$refer = mypage;
The play.php session will try to check if $refer is registered and if it is equal to "mypage". If $refer is registered in the session then the media file will start playing. If $refer is not registered the user will be redirected to the album.php page.
1) Are there any problems with the way I am approaching this?
2) What is the lifetime of the session if the user has disabled cookies?
I am using transparent SID so they can easily see the session id in the url and bookmark it.
If the cookies are disabled i have no way of knowing if the user has stopped viewing my page and I dont know when to destroy the session.
3) Is SID still valid if transparent SID is enabled?
Thanks for the help.
Ed.