Not sure if this is a bug or a feature request, but I think demo should not log out current users on restore. Better yet would be configuration to choose which tables to exclude.

Great module btw. Thanks!

Comments

sun’s picture

Status: Active » Closed (works as designed)

Well, exactly, because we do NOT want to logout users, the sessions table is NOT added to the list of excluded tables.

john.money’s picture

Hrm, ok... I took a closer look at the function demo_dump_db() and see that each $exclude table copies the structure and not the data. Makes sense.

But if sessions data is copied and subsequently restored, won't the session sid be mismatched with currently logged in users, effectively logging them out? I could be mistaken, but looks like there should then be a third option to keep sessions active on restore:

- do not drop table for new table array $exclude_keep_data