Scheduled Timed Task Recipe causes login issues on Extension Reload

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

FireballFred
Posts: 6
Joined: 30 Jan 2017, 23:03

Scheduled Timed Task Recipe causes login issues on Extension Reload

Postby FireballFred » 20 Jul 2018, 23:27

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.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Scheduled Timed Task Recipe causes login issues on Extension Reload

Postby Lapo » 21 Jul 2018, 07:13

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
Lapo
--
gotoAndPlay()
...addicted to flash games
Sufferance
Posts: 1
Joined: 29 Jul 2018, 23:16

Re: Scheduled Timed Task Recipe causes login issues on Extension Reload

Postby Sufferance » 29 Jul 2018, 23:25

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!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Scheduled Timed Task Recipe causes login issues on Extension Reload

Postby Lapo » 30 Jul 2018, 07:42

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
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 61 guests