Page 1 of 1

setting SESSION variables in UDT

Posted: Thu May 09, 2013 3:56 am
by rotezecke
i have a UDT that creates a dynamic form, and I wish to include a token that i'll check on submit of the form.

Code: Select all

$token = uniqid(mt_rand(), TRUE);
$_SESSION['token'] = $token;
but $_SESSION['token'] is not defined. the action php file is not part of CMSMS. should i create a page with an action {UDT} instead?