#1 Re: mORMot 1 » Base64Encode is unidentified » 2018-06-24 01:19:00

Stupid me, just use BinToBase64 and Base64ToBin instead, working fine now.

#2 mORMot 1 » Base64Encode is unidentified » 2018-06-23 10:48:09

tanong
Replies: 1

I have been using the function Base64Encode, but with the mORMot's latest built it's not accessible anymore. I would appreciate any suggestion.

#3 Re: mORMot 1 » How do I kill a session on a server? » 2015-08-30 11:39:34

It's really nice of you, ab.

At first I was going to learn more and try what the framework already amazingly has.
However, I think it could be helpful for some other developers with the similar needs.

I, therefore, just submitted a feature request ticket [0aa979de90097bbb030633df2e6c0c4a4e4037c8].

In order to manipulate/manage users on a server, I proposed for a property and a method on TSQLRestServer.

1. Add a read-only property, Sessions, to list all active sessions with their session's properties,
such as UserName, SessionId, Private Key, etc.

2. Add a method to close a particular session on the Sessions list.
Parameter(s) used could be the corresponding SessionId and/or Private Key.

Please feel free to modify, add, or correct any parts of the request.

Thanks a whole bunch! ab, and please forgive me for mistakes, if any.

#4 Re: mORMot 1 » How do I kill a session on a server? » 2015-08-30 07:46:57

Thanks, ab. I will try that.

Just to mention, my son, a c# programmer, is now also learning your mORMot.
We are now working together on a project. MORMot is really amazing!

#5 mORMot 1 » How do I kill a session on a server? » 2015-08-29 12:51:15

tanong
Replies: 4

Hi, ab (and the mORMot community fellows), thanks for your hard work.
I have been testing your framework on my online project.
I'm impressed (even though more to learn).

Now, I have a small problem.
Suppose that a user has logged in. And a few minutes later, another user logins with the same name.
If I want to kill the session created for the first person so that he/she is kicked out and no longer able to access the server.
How do I do that?

Edited:

Still waiting for advices. May be my intension was not clear.
All this is to prevent a group of users logging in with the same login simultaneously.
I could reject a duplicate login using OnSessionCreate which returns true.
But the objective is to kick out the already logged-in one.

Board footer

Powered by FluxBB