You are viewing an older version of the Autologin documentation (3.x).
View the latest version (4.x) →
Feature Tour
Usage
Login by URL
You can provide your users with a url that automatically logs them in. To set this up, you need a pair of username => password in the urlKeys configuration setting.
<?php
return [
'urlKeys' => [
'steeve' => 'BepmD8GQBZpaFpXQ',
],
];After setting that up, you can login by going to http://my-site.test/autologin?key=BepmD8GQBZpaFpXQ. This will login the user steeve automatically!
If you want to redirect to the control panel dashboard, add cp=true to the url: http://my-site.test/autologin?key=BepmD8GQBZpaFpXQ&cp=true
Last updated: May 2, 2026, 3:22:52 PM