vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Question on cookie_prefix (https://vborg.vbsupport.ru/showthread.php?t=325462)

A84 08-01-2017 12:17 PM

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:

Quote:

// 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

Quote:

// 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 :)

Rafa-el 08-01-2017 02:18 PM

Quote:

Originally Posted by A84 (Post 2589052)
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.

A84 08-03-2017 07:14 AM

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 :)

TheLastSuperman 08-04-2017 12:41 AM

Quote:

Originally Posted by A84 (Post 2589117)
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.


All times are GMT. The time now is 06:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02193 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete