StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-16-2009, 10:45 PM
coreystovin coreystovin is offline
Registered User
Genesis Member
 
Join Date: Apr 2009
Posts: 21
Default KILL the cookie for PW protected pages / posts

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 05:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.