Questions regarding sessions

Lennart Ericson
Lennart Ericson used Ask the Experts™
on
I have bought a script I try to understand.

In it there are session variables I have not seen before, like:

$_SESSION['session_antal'.$session_antal_id.'']

$_SESSION['session_specifikation'.$session_antal_id.'']

I wonder if someone, please, could explain it to me.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
$_SESSION['your_data'] can be used to store session data about the user in your session (cookie).

you can actually store anything you like inside it, but you have to call session_start(); first.

The data will remain available until the user clears his cache/cookies.

have a look here: http://www.tizag.com/phpT/phpsessions.php
and here: http://php.net/manual/en/features.sessions.php

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial