artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sessions.data purpose?


From: Nala Ginrut
Subject: Re: sessions.data purpose?
Date: Tue, 02 Mar 2021 21:20:33 +0800
User-agent: mu4e 1.4.15; emacs 27.1

Hi Mortimer!
Session is not only a single field to record that you can login without
authentication.

Sometimes some data is related to sid. Just like cookie on the server
side. Of course, it depends on your design. You may create another table
to contain these data and indexed by sid.

session.data is useful when you use `file' or `redis' as the session backend.
We used it in a internal project to store json string in redis as the
session data. So we can access the data quick and dirty.

When you're using relational databases as the backend, you may create
tables for that, it's relatively a weak feature to use.

Best regards.

<#secure method=pgpmime mode=sign>

Mortimer Cladwell writes:

> Hi Nala,
> What is the purpose of the sessions.data field? For all my sessions the
> data field is populated with an empty list.  Is there a way for me to make
> use of this list?  For example I would like to associate a session with a
> person.  Is that (associating a person with a session) already handled
> within Artanis?
> Thanks
> Mortimer


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058



reply via email to

[Prev in Thread] Current Thread [Next in Thread]