Avatar

Problems with several MLF on the same domain (General)

by Rövarn ⌂, Saturday, March 19, 2016, 14:04 (2952 days ago)

I have several different forums on the same domain. The forums have separate databases and different prefixes on the database tables.

Problem: If I'm logged in as "medlem" of the forum user "member" exist, and then open another of the forums, I am still "medlem" even though the user is not exist on another forum. How is this possible and is there a solution?

[image]

[image]

[image]

--
Just for fun...
[image]

Avatar

Problems with several MLF on the same domain

by Rövarn ⌂, Saturday, March 19, 2016, 15:19 (2952 days ago) @ Rövarn

I disabled the auto login and changed the advanced settings "remember_last_visit" and "remember_user_data" from 1 to 0...

Is it somehow possible to make the user is logged out automatically when the forum is closed? I think that had solved my problem.

--
Just for fun...
[image]

Avatar

Problems with several MLF on the same domain

by Auge ⌂, Sunday, March 20, 2016, 16:15 (2951 days ago) @ Rövarn

Hello

Is it somehow possible to make the user is logged out automatically when the forum is closed?

No, that would not work, because the statelessness of the HTTP-protocol. If you klick a link or you press the enter-button on your keyboard after inserted a URL the browser sends a request to the webserver and get ressources (the page, images, css and javascript scripts) in return. After that moment the connection between your browser and the webserver is closed. The webserver will not take any notice, that you closed your browser window or tab or you leaved the page onto another goal.

The easy but time consuming way is to log out in every forum after every single session and log in explicitely for the next session again. The more complicated but afterwards easier way is to ensure different names for the cookies of every single forum with the prefixes of their names.

I don't know if mlf2 gives you such a setting. The setting session_prefix (Admin=>forum settings=>advanced settings) may be a starting point.

I disabled the auto login and changed the advanced settings "remember_last_visit" and "remember_user_data" from 1 to 0...

The settings remember last visit and remember user data controls the lifetime of the cookies (current session or x days) and auto_login is logged in if he requests one of the forum pages. If mlf2 handles different cookie names (cookie prefixes) you can reenable these settings.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Avatar

Problems with several MLF on the same domain

by Rövarn ⌂, Monday, March 21, 2016, 07:17 (2950 days ago) @ Auge

Hello

I don't know if mlf2 gives you such a setting. The setting session_prefix (Admin=>forum settings=>advanced settings) may be a starting point.


Tschö, Auge

This was the solution, now it works. Thanks!

:ok:

--
Just for fun...
[image]

Avatar

Solved!

by Rövarn ⌂, Wednesday, March 23, 2016, 06:31 (2948 days ago) @ Rövarn

:ok:

--
Just for fun...
[image]

RSS Feed of thread