Feb 24th, 2012, 12:43 PM
Quote:Quote:Would it be possible to include a ft_api_clear_form_sessions(); on the actual form page itself? Perhaps above where the $fields = ft_api_init_form_page(); line is?
If so, we could clear ALL sessions on page load, before attempting to start a session.... and that would be much simpler than this namespacing thing.
Unfortunately not. The ft_api_clear_form_sessions completely empties out sessions, even those of a form currently being put through, so the only place it can go is on the final thank you page.
I am JUST now getting to this Name Spacing. I've got all our forms edited appropriately (I think), so now I just need to test this idea and make sure it works as intended.
Regarding our conversation above, what if I have a blank thank you page with a normal session clearing snippet. Then I use that as a fast refresh page? So in other words, a user would click a link to fill out a form, but the user would actually be clicking onto that blank session clear page, which would instantly redirect to the appropriate form? That way the sessions have been cleared automatically and then a new form is started?
Did that make sense? Is that going over board?