This recipe does not clean up the extension properly:
https://smartfoxserver.com/blog/how-to- ... extension/
The destroy() override does not call super.destroy(). If you have a custom login system enabled and reload an extension this leads to complaints from the server: "Login failed: TestUser , session is already expired!" No users are able to login after the extension reload.
Scheduled Timed Task Recipe causes login issues on Extension Reload
-
- Posts: 6
- Joined: 30 Jan 2017, 23:03
Re: Scheduled Timed Task Recipe causes login issues on Extension Reload
Hi,
the example was just meant to demonstrate how to work with Schedulers while your use case has a broader scope, but I get your point.
We'll fix it.
Cheers
the example was just meant to demonstrate how to work with Schedulers while your use case has a broader scope, but I get your point.
We'll fix it.
Cheers
-
- Posts: 1
- Joined: 29 Jul 2018, 23:16
Re: Scheduled Timed Task Recipe causes login issues on Extension Reload
Just a heads up. I'm also getting the same problem. When my extensions reload users can't login anymore. Server keeps saying the session has expired.
{GameExtension}: Init GameExtension
User already logged in. Disconnecting previous instance : ( User Name: test, Id: 5, Priv: 0, Sess: 127.0.0.1:50115 )
Session removed: { Id: 6, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:50115 }
User disconnected: { Zone: Game}, ( User Name: test, Id: 5, Priv: 0, Sess: 127.0.0.1:50115 ) , SessionLen: 5, Type: Unity
Login failed: test, session is already expired!
{GameExtension}: Init GameExtension
User already logged in. Disconnecting previous instance : ( User Name: test, Id: 5, Priv: 0, Sess: 127.0.0.1:50115 )
Session removed: { Id: 6, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:50115 }
User disconnected: { Zone: Game}, ( User Name: test, Id: 5, Priv: 0, Sess: 127.0.0.1:50115 ) , SessionLen: 5, Type: Unity
Login failed: test, session is already expired!
Re: Scheduled Timed Task Recipe causes login issues on Extension Reload
Hi,
I don't think this is related with this thread.
Can you please start a new thread and describe a bit better the issue?
Add the server version being used and describe how you use the scheduler (if you use it... since you posted under a scheduling related thread)
Thanks
I don't think this is related with this thread.
Can you please start a new thread and describe a bit better the issue?
Add the server version being used and describe how you use the scheduler (if you use it... since you posted under a scheduling related thread)
Thanks
Who is online
Users browsing this forum: Baidu [Spider] and 126 guests