![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I did some searching and found this idea. http://wordpress.org/support/topic/190190
I want wordpress to automatically delete the cookie it creates on user's computers after they leave the page, close the browser window... Or like in the example above which would be sufficient adds a time-out for 10sec... than the user will have to re-enter the password to regain access. So the info says to : Change in wp-pass.php the follow code, on line 16: setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); You need to change the value of 864000 seconds, according to yours users needed. In my site, i just need to remember the cookie 10 seconds. So it should be as: setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 10, COOKIEPATH); If this should work where do I find wp-pass.php ? I can't seem to see it under Appearance->Editor. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Password Protected Pages | anthonysb | General Discussion | 1 | 08-14-2009 12:52 AM |
| RevolutionTV Theme and Password Protected Posts | ocazus | General Discussion | 3 | 11-15-2008 05:34 PM |
| RevolutionTV Theme and Password Protected Posts | ocazus | General Discussion | 2 | 12-31-1969 06:00 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us