+-------[ Dvir Bar-lev ]----------------------
| Hi
| 
|  
| 
| I was wondering if there is a way to connect the creation of a session object
| to a button push.
| 
| I?ll explain in more detail:
| 
|  
| 
| I have a log in from called login_form, and I have a dtml method called
| looged_in that is called when we push the submit button in the log in form.
| 
| What I did is the following, in the log_in_form I get a session data object
| only if it exsists and I check how much time passed and act accordingly, in 
the
| looged_in method I create the data session oblject ans set the start time.
| 
| Unfortuantly that is not good for me because if a user refreshes the page it
| resets the time in the session object, I was wondering if there is a way for 
me
| to know if I can reset the session data time only when the user clicks the
| submit button and not as a result of a refresh call.

Name the submit button and check for the name of the button in the request.

<input type="submit" name="theButton" value="Press Me">

"theButton" will appear in REQUEST (and REQUEST.form) if the button was
pressed.


-- 
Andrew Milton
a...@theinternet.com.au
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to