Same session_prefix in 2 forum (General)

by Tommy Nilsson, Tuesday, October 24, 2017, 08:55 (27 days ago)

There is a slight error in my database setup.
I have the same session_prefix in 2 different forum which gives some strange user behaviors.
I have 2 forum in 1 database on 1 domain:

Forum1:
database-table-prefix: xf1_
settings: session_prefix: mlf2_

Forum2:
database-table-prefix: mlf2_
settings: session_prefix: mlf2_

I changed the Forum1 session_prefix to: xf1_ but then I could not log in as admin.
What is the safest way to solve this problem?
Does the session_prefix have to be the same as the database-table-prefix?

/Tommy

Same session_prefix in 2 forum

by Tommy Nilsson, Monday, October 30, 2017, 19:32 (21 days ago) @ Tommy Nilsson

I changed the Forum1 session_prefix to: xf1_ but then I could not log in as admin.
What is the safest way to solve this problem?
Does the session_prefix have to be the same as the database-table-prefix?


Ok, I solved this - apparently there are no corrolation between session_prefix and database-table-prefix?

/Tommy

Avatar

Same session_prefix in 2 forum

by Milo ⌂, Tuesday, October 31, 2017, 09:24 (20 days ago) @ Tommy Nilsson

Hi Tommy,

there are no corrolation between session_prefix and database-table-prefix?

No, there aren't.

/Micha

--
Surveyor-Software: Geodetic Network Adjustment & Deformation-Analysis and Transformation

Avatar

Same session_prefix in 2 forum

by Auge ⌂ @, Tuesday, October 31, 2017, 13:04 (20 days ago) @ Tommy Nilsson

Hello

I changed the Forum1 session_prefix to: xf1_ but then I could not log in as admin.
What is the safest way to solve this problem?
Does the session_prefix have to be the same as the database-table-prefix?


Ok, I solved this

Please describe the steps you took to solve the problem. I know, there are several threads about this subject here in the deep of the project forum. I for myself never tried to install two or more forums on one host, that shares parts of the database tables, so everything I could offer, is half knowledge.

I wish to include a description, what to do, into the project wiki. So I would appreciate a "fresh" description from a practitioner. :-)

Thanks in advance and tschö, Auge

--
further development of mlf1

Same session_prefix in 2 forum

by Tommy Nilsson, Thursday, November 02, 2017, 08:16 (18 days ago) @ Auge

Hello

I changed the Forum1 session_prefix to: xf1_ but then I could not log in as admin.
What is the safest way to solve this problem?
Does the session_prefix have to be the same as the database-table-prefix?


Ok, I solved this


Please describe the steps you took to solve the problem. I know, there are several threads about this subject here in the deep of the project forum. I for myself never tried to install two or more forums on one host, that shares parts of the database tables, so everything I could offer, is half knowledge.

I wish to include a description, what to do, into the project wiki. So I would appreciate a "fresh" description from a practitioner. :-)

Thanks in advance and tschö, Auge

- Install Forum1
- Install Forum2 and remember to choose another database-table-prefix. (I believe mlf_ is default)
- Check that session_prefix in the table mlf_sessions is different in the 2 installations. (somehow I ended up having the same session_prefix which gave some weird behaviors).
- This should result in 2 completely separate installations of the forum on the same domain.

- If you end up having the same session_prefix in the 2 installations do this:
- Log off as Administrator
- Change the session_prefix in the table mlf_sessions to xyz_ in the forum that you have logged off from
- Reboot pc to clear cache and sessions
- Log on as Administrator and you are good to go

To whom to I send danish.lang and swedish.lang?

/Tommy

RSS Feed of thread
powered by my little forum