Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2010
    Posts
    390
    Thanks
    48
    Thanked 1 Time in 1 Post

    How to Set a Page Timeout?

    Hiya Everyone,

    Adding this question here as I'm not sure what the best programming language solution is.

    I am working on my admin panel domain.com/admin and upon the admin not being on that page for lets say 5 minutes, I would like them to to be redirected to admin/lock.html the 'locked' state, this is like when you lock your computer, it asks you for your password again. It does not log them out from the website, only the admin section.

    No login is currently established, I'm just looking for something simple for the time being to demonstrate. What is my best solution to be able to achieve this please?

    Best Regards,
    Tim

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Are you saying that as of now, someone gets into the admin section without a login?
    Or do you mean, you want to incorporate a login, that currently you don't have?

    The 5 minute thing can either by javascripting or HTML

    Here is an HTML meta method:

    <meta http-equiv="refresh" content="300;url=http://www.yoursite.com/admin/lock.html/" />

    300 seconds is 5 minutes.

    And then you have the whole PHP thing. PHP would be used to create a login, set a SESSION, and have the SESSION timeout, which logs them off.
    There can be two SESSIONs ... one for the website login, one for the admin login. Only the admin login can be killed.

    You didn't mention anything about using PHP.

    I'm not sure where this discussion will go ...

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by mlseim View Post
    <meta http-equiv="refresh" content="300;url=http://www.yoursite.com/admin/lock.html/" />
    you can also do that in PHP

    Code:
    header("Refresh: 300;url=http://www.yoursite.com/admin/lock.html/");
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New to the CF scene
    Join Date
    Jun 2014
    Location
    Madagascar
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Effortless ghd australia cheap Programs - Updated

    Either is acceptable, and may be tried based about the needs you see with your child's Hair Straighteners. Gloss Black ghd IV Dark Styler available nowadays from just. . And among all the opposite products available within the market GHD makes a rapid progress in gaining the fame of becoming the most popular one. The only caution which has a "leave-in" conditioner is that curly GHD Hair that is silkier or finer in texture may be left using a film or residue in the event the leave-in conditioner is too heavy for that texture type. on top with the head, simply because this may cause unnecessary tangling.

    All those flicks, curls and waves are in the same way easy to achieve with all the groundbreaking ceramic technology of this hair straightener. Instead of touring any profit the sun acts only the differing to hair. . If you've particularly short, or really long and thick hair, you could possibly be better off using a pair of ghd mini or salon straighteners. It only appears natural that due for the fact nearly all our body is fueled over the healthiest of foods, feeding ghd straighteners australia our minds exactly the same way follows fit. ) Once in position, re-fit the plastic cap for the back with the GHD straighteners and screw back up in place while using two small screws and unfortunately your micro-screwdriver.

    While while using the this particular hair-styling resources. Keep the ghd styler rotating slightly while moving, not forgetting the slower you go, the tighter the curl. . Besides the usage of ceramic plates that were already mentioned the quick heat that enables the iron to get hot quickly within 10 seconds that is certainly much faster than any other inside the competition and on top of it really is that there is definitely an in-built temperature regulator that maintains steady flow of temperature also are the reasons for ghd straighteners australia the popularity. The price for the GHD website for your same pair the hairdresser used were 99 pounds. .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •