Forum Moderators: coopster
include this line at the top of all your scripts...
session_start();
you can set session variables like this...
$_SESSION['imageSize'] = 1;
and check whether it's set like this...
if (!isset($_SESSION['imageSize'])) {...code...}
This will work differently depending on how your sessions are configured in php.ini.
If sessions don't work with cookies disabled, you probably need to add this line to php.ini...
session.use_trans_sid=1
Call function "phpinfo()" from your script and you'll find the php session configuration.
If your user is using cookies you can extend their session for as long as you want like this... (this sets the session to expire in a year, call before session_start!)...
session_set_cookie_params (60*60*24*365*1);
Have fun.