Loading...
 
Skip to main content

Features / Usability


[SOLVED] Changing Session store from Cookie to Database locks out Admin account

Yesterday I changed session tracking from Cookies to Database knowing that some people refuse to use cookies. After changing the setting, I changed the page and found myself locked out of Tikiwiki.

I successfully reversed the change by changing resetting the session tracking to use cookies again by editing the Tikiwiki database directly with myPhpAdmin.

The database field to change is session_db in the tiki_preferences table. If you nave set it to 'y' from the admin pages in Tikiwiki and locked yourself out, change the value in the database to 'n' (no quotes), and it should let you back in.

This sounded like the answer I needed, but I don't see the options you mention.

I found my "tiki_preferences table" via PhpMyAdmin, but I don't see anything to do with database options there.

My original problem: I got locked out after turning on "Store session data in database" in the General Settings. After saving, I received a message "session_db enabled" and was promptly locked out, and cannot login.

Thanks to anyone for any advice that may help...
Cathy


It works afterall!

Sessions_db didn't show up until I selected Primary as the sorting method. Also the first couple of tries, I selected
tiki_preferences from the left column, which didn't seem to take me anywhere useful. I'm a novice if that's not already obvious.

Thank you for your advice.

My steps:
> cPanel,
> PhpMyAdmin,
> tiki4 (my filename in left column),
> tiki_preferences (in main window on right),
> hit browse icon,
> select "PRIMARY" for "sort by key" option
> find "session_db",
> edit from "y" to "n".

Yeah!!!!! I was able to log in again! Thank you 😊

(by the way, it took me about 20 tries to figure out how to write this post so it would take. I had to add a return in the middle of the first paragraph to separate the 2 _'s )