|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
timmerk Smarty Regular
Joined: 06 Mar 2005 Posts: 36
|
Posted: Sun Mar 06, 2005 11:39 am Post subject: Remove session_start() dependancy from SmartyValidate? |
|
|
Hi,
I was wondering if there was a way to remove the session_start() dependancy of SmartyValidate?
What is it used for? Is it easy to remove the need for it? I don't want any sessions in my app.
Thanks! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sun Mar 06, 2005 6:05 pm Post subject: |
|
|
SmartyValidate relies on sessions to maintain the form validation criteria. |
|
Back to top |
|
timmerk Smarty Regular
Joined: 06 Mar 2005 Posts: 36
|
Posted: Tue Mar 08, 2005 2:38 am Post subject: |
|
|
But aren't there better ways? For example, I have seen other people do form validation without sessions, and without sending the rules in the HTML. Maybe they just reread the template file? Of course, that would probably be slower... |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Mar 08, 2005 2:50 pm Post subject: |
|
|
The validation criteria is saved in the session server-side so it persists page to page and you cannot manipulate something in the form to get it to validate. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|