You need to sign in to do that
Don't have an account?

SFDC as identity provider - login cookie
I'm using SFDC as an identity provider for a SAML logon to a WordPress site. As of now, each time a user closes his browser they have to log back in. Is there any way of setting a cookie so that they remain in a logged in status for a longer period of time?
Hi Lloyd,
This appears to be default for Wordpress cookies are removed after teh browser is closed.
However it can be changed,
You could replace line 86 of random-post-link.php (http://plugins.trac.wordpress.org/browser/random-post-link/trunk/random-post-link.php#L86) with something like:
setcookie(self::name, trim(implode(' ', $ids)), time() + (60 * 60 * 24 * 30), '/');
to make the cookie last for 30 days. To make it last longer, change the 30 to the number of days you'd like it to last.
http://wordpress.org/support/topic/cookie-expires-with-browser-session
Also See the below disscussion,
http://stackoverflow.com/questions/14603504/wordpress-remove-cookies-after-browser-closed
Regards,
Ashish
setcookie(self::name, trim(implode(' ', $ids)), time() + (60 * 60 * 24 * 30), '/');
Thanks
http://www.greatbasinindustrial.com/