Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Delete the session file and generate a new one? #10

Open
nitanmarcel opened this issue Jan 26, 2019 · 1 comment
Open

Delete the session file and generate a new one? #10

nitanmarcel opened this issue Jan 26, 2019 · 1 comment

Comments

@nitanmarcel
Copy link

What is the right way to delete a session. And generate a new one?

I tried with session.delete() and it seems it worked the first time but after I tried again I couldn't make it work.

The way I'm connecting is:

container = AlchemySessionContainer(DB_URI)
session = container.new_session("userbot")
@ACLzz
Copy link

ACLzz commented Aug 23, 2020

I don't think that you still need this, but maybe someone need.
After session.delete() you must call session.save() and it will be deleted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants