The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
namespace: if used, how to clear session (and remove uncompleted sessions) - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: namespace: if used, how to clear session (and remove uncompleted sessions) (/showthread.php?tid=2246) |
namespace: if used, how to clear session (and remove uncompleted sessions) - chuanse - Oct 25th, 2012 Hi, I am using namespace in my external form, processed with the API. When I reach the last page I get a 306 error. I suppose I should edit the values of the last lines in the code according to the ft_api_init_form_page values: Code: require_once("/home/tandform/public_html/formtools/global/api/api.php"); Should I add something to the clear_form ? To what do I change the delete_unfinalized_submissions? For those with the same issue: I found one answer already: Quote:If you originally passed a custom sessions namespace string to the ft_api_init_form_page function, you need to pass the same namespace string to this function. For example, if your namespace was "my_form", you'd call this function like so: RE: namespace: if used, how to clear session (and remove uncompleted sessions) - chuanse - Oct 26th, 2012 Argh, graveyard shift bonehead mistake of course the process form shouldn't be there the last page :/ correct code in my case is: Code: require_once("/home/tandform/public_html/formtools/global/api/api.php"); I still am trying to figure out why the no_sessions_url parameter is not working with php form validation :/ http://forums.formtools.org/showthread.php?tid=2245&action=lastpost Does anyone know what do to with that? |