describe function of session cookie

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
webvent
Forum Members
Forum Members
Posts: 13
Joined: Sun Jan 15, 2023 7:12 pm

describe function of session cookie

Post by webvent »

Hi all

Where can I find the description of the session cookie? Meaning, what it does, what data gathers (if any) etc, in order to describe this in the websites privacy policy.
Thank you!
Mig
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1472
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: describe function of session cookie

Post by DIGI3 »

It sets a random string of numbers and letters, no personal data is stored or gathered.

It is primarily used so if you're logged into admin at the same time as viewing the frontend, it will disable the cache, and allow for proper previews in admin. The number is read, if it matches the one read in admin, it knows its the same person (session).

You can put this in your page template to view what is stored:

Code: Select all

<pre>{$smarty.session|print_r}</pre>
check it while logged in to admin in another tab, and also in incognito so you can see the difference.
Not getting the answer you need? CMSMS support options
webvent
Forum Members
Forum Members
Posts: 13
Joined: Sun Jan 15, 2023 7:12 pm

Re: describe function of session cookie

Post by webvent »

DIGI3 wrote: Tue Jan 24, 2023 6:25 pm It sets a random string of numbers and letters, no personal data is stored or gathered.

It is primarily used so if you're logged into admin at the same time as viewing the frontend, it will disable the cache, and allow for proper previews in admin. The number is read, if it matches the one read in admin, it knows its the same person (session).

You can put this in your page template to view what is stored:

Code: Select all

<pre>{$smarty.session|print_r}</pre>
check it while logged in to admin in another tab, and also in incognito so you can see the difference.
Hi
Thanks for your help.
I am still not knowledgeable of CMSMS, can you clarify the steps to place the code in page template? Just want to make sure I do the test properly.

Mig
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1472
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: describe function of session cookie

Post by DIGI3 »

In Design Manager, open the template you want to edit. Paste the code snippet in a place you'd like it to show then hit submit.
Not getting the answer you need? CMSMS support options
jce76350
Beta Tester
Beta Tester
Posts: 1983
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: describe function of session cookie

Post by jce76350 »

Jean-Claude Etiemble
Post Reply

Return to “CMSMS Core”