• My query relates to wp-pass.php

    I have been looking at that file and find that at one place it is time()+60*60*24*30

    Does this mean one can change the time for cookie to be valid? What syntax should I use if I wish to define the time of validity to five minutes. Thanks.

    Anup
    http://www.i3pep.org

Viewing 1 replies (of 1 total)
  • Hmm. time() returns Unix time in seconds, so what you have goes:

    +seconds in a minute
    *minutes in an hour
    *hours in a day
    *number of days

    For just five minutes, get rid of the math quiz and use this:

    time()+300

Viewing 1 replies (of 1 total)

The topic ‘wp-pass’ is closed to new replies.