In my website, I have to show Videos everyday. I want to close the Video Playing Webpage after my customers may login and watched the video for 4 hours timeout period.
I don't wish to make any change in the video player code but I want to redirect or Close the entire PHP Page after reaching 4 hours.
Add this in the page
header("refresh:14400;url=another_page.php");
Change the page name accordingly
Why not with javascript?
You can try:
<script type="text/javascript">setTimeout("window.close();", 14 400 000 );</script>
Those 14 400 000 are 4 hours converted to miliseconds.
Hope it helps.
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I have a two columns of data: Course_Num and RecordNum
I am building a program to generate summary of placement scenario in a particular collegeI am taking input from input console in C++
I was looking for a better way to try to read files and use them to create tables for MySQL, and I stumbled across agate, so I'm trying to see if it will work for my purposes
I user icons in a variety of dynamic ways and store them a database