setting SESSION variables in UDT

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

setting SESSION variables in UDT

Post 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?
Post Reply

Return to “The Lounge”