Usage: gms_session_exists ( session_id )


Returns whether the session with the specified session_id exists.

Replies (7)

Last message on 18 May 2021

AppDev on 14 Apr 2021, 16:30:46
Is there a way to make the session open for 24/7?

i mean my game needs the server doesnt delete the empty session, is there a way to interfere it?
what i mean about that is make the session running even its empty?
Size43 (Administrator) on 24 Apr 2021, 19:17:01
For what purpose are you trying to keep a session running?

Sessions aren't meant to be permanent. They will disappear eventually. If you want information to be stored permanently you should store it in an INI or a BDB.
AppDev on 3 May 2021, 08:15:35
Im using sessions to make worlds, worlds represent the main game place where people can build and lock the worlds or claim it
AppDev on 3 May 2021, 08:14:32
The sessions are in BDB inside game-ini but then if theres no players exists in the sessions it will disappear,
i was wondering if making the empty session permanent and saved all information inside it?
Size43 (Administrator) on 3 May 2021, 12:46:08
Sessions cannot be permanent. You'll have to create some other system that only relies on INIs or BDBs to create or save worlds.

The 'Blocks' example in the download shows one way you could do this.
AppDev on 4 May 2021, 03:15:40
is there any tutorials here on what type of system should i make without using the Sessions for the world?
i really need help with this
Size43 (Administrator) on 18 May 2021, 22:25:05
Apologies for the delay. The 'Blocks' example should be a good starting point if you need to store a lot of information. It shows a basic world system, as well as syncing the worlds.

If you only need to store a little information, you could also use the GameINI. However, I'd suggest using the BDBs if you can, as they will most likely more efficient.