All WordPress websites will automatically log you out after a certain amount of time. I generally like this feature as a security measure.
But what if you have a site that you NEVER want to log out of (a local development site, a site that is wrapped in an app, grandma’s photo-sharing blog, etc.)? Well, here’s your solution!
I invested some time this morning creating a simple plugin that will maintain your login cookie for 40+ years. Download it on Github. Hat tip to Alex Mills (Viper007Bond), who wrote the original code that I modified.
I hope you can get some mileage out of it! 🙂
More posts from themightymo.com
How to fix the “Warning: Class ‘Automattic\WooCommerce\StoreApi\Routes” issue in WordPress + WooCommerce
Today when I visited a customer’s website, I saw an error similar to this: etc. After trying all sorts of troubleshooting, the solution ended up being simple. Download a fresh copy of WooCommerce from WordPress.org and FTP it up to the server, replacing the existing WooCommerce files. Problem solved. Isn’t that nice? Many thanks to…
How to CSS rainbow text
Here’s a bit of plain CSS that’ll create rainbow text on your WordPress site or anywhere, really.
How to Restore a Deleted Amazon S3 Bucket
I ran into a rather serious issue recently: a human on my team (me) intentionally (but accidentally) deleted an Amazon S3 bucket that was serving files to a WordPress site. The solution to the problem follows: Cry when you realize you cannot restore a deleted S3 bucket. Search your computer, your co-workers’ computers, your former…