Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Aug 2017, 14:17
A84 A84 is offline
 
Join Date: Jul 2017
Question on cookie_prefix

Hello!

i need to force a logout to all logged in users. Currently running 5.3.2p1

I googled a bit and it looks like changing the cookie_prefix should do the trick.

However, i notice that the /config.php file says:

// This Setting allows you to change the cookie prefix

// This must match the core/includes/config.php file cookie prefix setting

$config['cookie_prefix'] = '';
however, i currently have in my /core/includes/config.php

// Prefix that all vBulletin cookies will have
// Keep this short and only use numbers and letters, i.e. 1-9 and a-Z
$config['Misc']['cookieprefix'] = 'bb';

what should i do then? shall i change them both to bb1 , or should i leave the first one blank and change the second one to bb1 ?

thank you
Reply With Quote
  #2  
Old 01 Aug 2017, 16:18
Rafa-el's Avatar
Rafa-el Rafa-el is offline
 
Join Date: Feb 2010
Location: Nicaragua
Real name: Rafael Benard
Originally Posted by A84 View Post
Hello!

i need to force a logout to all logged in users. Currently running 5.3.2p1

I googled a bit and it looks like changing the cookie_prefix should do the trick.

However, i notice that the /config.php file says:



however, i currently have in my /core/includes/config.php




what should i do then? shall i change them both to bb1 , or should i leave the first one blank and change the second one to bb1 ?

thank you
You can change it to whatever you want, altough you could just drop the sessions table and that'll also do the trick.
Reply With Quote
  #3  
Old 03 Aug 2017, 09:14
A84 A84 is offline
 
Join Date: Jul 2017
Thank Rafa-el, my question was not if i had to change to something, but if i had to change just one, or both.

For those who might find this thread, the answer is:

- you must change them both. the /config.php file has "" assigned to cookie prefix, but apparently it is overridden as a default value somewhere. If you change it in /core/includes/config.php you have to change it in /config.php too (as stated in the config.php comment)

- in my case however, truncating the sessions table only did not work at all. In the end just to be sure, i truncated the table and changed both files. Hope this helps somebody in the future
Reply With Quote
  #4  
Old 04 Aug 2017, 02:41
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Originally Posted by A84 View Post
Thank Rafa-el, my question was not if i had to change to something, but if i had to change just one, or both.

For those who might find this thread, the answer is:

- you must change them both. the /config.php file has "" assigned to cookie prefix, but apparently it is overridden as a default value somewhere. If you change it in /core/includes/config.php you have to change it in /config.php too (as stated in the config.php comment)

- in my case however, truncating the sessions table only did not work at all. In the end just to be sure, i truncated the table and changed both files. Hope this helps somebody in the future
Truncating the session table does work though, their session will end and they will need to login again before being able to post. What you should do in the future is close the site temporarily, truncate the session table then change cookie prefix and such, then truncate session table again and finally re-open the site which is the only way to ensure everyone is loading the new cookie per say.
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman - Custom vBulletin Modifications, Styles, and Services.
Need a Host? I recommend URLJet.

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 12:49.

Layout Options | Width: Wide Color: