Skip to content

How to stay logged in? #3450

Answered by johnaweiss
johnaweiss asked this question in Q&A
Discussion options

You must be logged in to vote

Another thread just posted this answer:

The idea behind just excluding logged-in users is that that should be ~zero steps. If your YOURLS login session doesn't even last through a day, that's non-default behavior:

YOURLS/includes/Config/Config.php

Lines 188 to 190 in 6da30df

 // life span of an auth cookie in seconds (60*60*24*7 = 7 days) 
 if (!defined( 'YOURLS_COOKIE_LIFE' )) 
     define( 'YOURLS_COOKIE_LIFE', 60*60*24*7 );

#3448 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johnaweiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant