SFS2X Handshake

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

Moderators: Lapo, Bax

Oleg_79
Posts: 161
Joined: 25 Feb 2011, 10:31
Location: Ukraine, Donetsk

SFS2X Handshake

Postby Oleg_79 » 10 Jun 2017, 18:53

Hi!

How to get the event on the server side before the login event.

Thanks for help!
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFS2X Handshake

Postby Lapo » 11 Jun 2017, 17:20

Hi,
there are no events before login because a client is not allowed to send any request before he's actually logged in a Zone.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Oleg_79
Posts: 161
Joined: 25 Feb 2011, 10:31
Location: Ukraine, Donetsk

Re: SFS2X Handshake

Postby Oleg_79 » 12 Jun 2017, 06:47

How can I make sure that the login event does not come?
So that the session opens and immediately closes?
How to access the user's session before the login event?
I want to do my checking and depending on the result or close the session or let the user log in.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFS2X Handshake

Postby Lapo » 12 Jun 2017, 07:35

How can I make sure that the login event does not come? So that the session opens and immediately closes?

I am not sure what this means?
If a connection opens and closes immediately the client will not be able to send anything and therefore there's not much you can from the server side.


How to access the user's session before the login event?

You don't.
SmartFoxServer security does not allow a client to send any request other than login, at that stage.

I want to do my checking and depending on the result or close the session or let the user log in.

This is already done by the server for you.
I am not sure what do you want to add that is not already there.
Can you explain your use case?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 106 guests