setting SESSION variables in UDT
Posted: Thu May 09, 2013 3:56 am
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.
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?
Code: Select all
$token = uniqid(mt_rand(), TRUE);
$_SESSION['token'] = $token;