Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 8 Months, 1 Week ago Never Log out of ACP
#1
Solved: 8 Years, 8 Months, 1 Week ago
As you know, when your logged into MyBB's ACP your logged out after a certain period of inactivity. So I just need someone to tell me how to make it so that my session never expires, also this is on my localhost so I'm not worried about security issues. Thanks!

[Image: iYa29IFsjRtGF.png]


#2
Solved: 8 Years, 8 Months, 1 Week ago
This user has been denied support. This user has been denied support.
I think this requires some root modifications, since I believe it's coded to log you out after an hour or so. You probably would need to change the timer from 60 to another larger number. Question is, where would you change it.?
#3
Solved: 8 Years, 8 Months, 1 Week ago
Line 249 of ./admin/index.php, find and remove:

// Admin CP sessions 2 hours old are expired
if($admin_session['lastactive'] < TIME_NOW-7200)
{
	$login_message = $lang->error_admin_session_expired;
	$db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->cookies['adminsid'])."'");
	unset($mybb->user);
}
// If IP matching is set - check IP address against the session IP
else 

Make sure you remove the else at the end, it's to change the 'else if' on line 256 to just an 'if'.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#4
Solved: 8 Years, 8 Months, 1 Week ago
Okay now I'm getting this error:

Parse error: parse error in C:\wamp\www\mybb\admin\index.php on line 276


[Image: iYa29IFsjRtGF.png]


#5
Solved: 8 Years, 8 Months, 1 Week ago
Are you sure you only removed what's there?? It works perfectly fine for me when I make that edit.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#6
Solved: 8 Years, 8 Months, 1 Week ago
I removed what you told me and I still get the error.

Edit: Nvm I forgot to change "else if" to just "if".

[Image: iYa29IFsjRtGF.png]


#7
Solved: 8 Years, 8 Months, 1 Week ago
I did purposely mention that specific bit in my post, but glad it's working.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)