session of incomplete multi page order?

This is a discussion on session of incomplete multi page order? within the PHP Language forums, part of the PHP Programming Forums category; In a 2-page order form, not all applicants will complete it due to field validations. If I want to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2006
Jan
 
Posts: n/a
Default session of incomplete multi page order?

In a 2-page order form, not all applicants will complete it due to
field validations. If I want to see data from incomplete orders, can
this be done using some sort of session control so that each form page
data saved (each press on submit will save data to disk) will have a
session number attached to it?

Thus if the order log contains several line entries from submit
attempts, then I can locate the lines that belongs to the same order
based on this session ID?

Or is there another or more clever way?

Reply With Quote
  #2 (permalink)  
Old 02-27-2006
Carl Vondrick
 
Posts: n/a
Default Re: session of incomplete multi page order?

Jan wrote:
> In a 2-page order form, not all applicants will complete it due to
> field validations. If I want to see data from incomplete orders, can
> this be done using some sort of session control so that each form page
> data saved (each press on submit will save data to disk) will have a
> session number attached to it?
>
> Thus if the order log contains several line entries from submit
> attempts, then I can locate the lines that belongs to the same order
> based on this session ID?


This should work fine. Sessions are great to keep data from one page to
another. However, if you want to personally view the sessions, I would
store them in a database instead, as the session data can be quite cryptic.

Can you explain your intent again?


> Or is there another or more clever way?
>

Reply With Quote
  #3 (permalink)  
Old 02-27-2006
Jan
 
Posts: n/a
Default Re: session of incomplete multi page order?

The intent is to see which order forms that were incomplete and the
values that was provided by the user for the incomplete submits. This
way we may contact the person if e.g. one of the contact fields were
filled out or improve the usability of the form.

We prefer not using a database on the server as that may ad more risk
of down time, thus storing data to a text file is likely a bit less
risky, thus I suppose the text file will have to contain some sort of
sessionID number on each text line in the file for us to indentify
which lines belong to the same order. (Down time risk: mySQL server may
be down, while PHP is still working).

Uptime is crucial for us due to volumes, if PHP is less stable than
Perl, maybe we should consider Perl for the forms, but Perl might not
support sessions?

Carl Vondrick wrote:
> Jan wrote:
> > In a 2-page order form, not all applicants will complete it due to
> > field validations. If I want to see data from incomplete orders, can
> > this be done using some sort of session control so that each form page
> > data saved (each press on submit will save data to disk) will have a
> > session number attached to it?
> >
> > Thus if the order log contains several line entries from submit
> > attempts, then I can locate the lines that belongs to the same order
> > based on this session ID?

>
> This should work fine. Sessions are great to keep data from one page to
> another. However, if you want to personally view the sessions, I would
> store them in a database instead, as the session data can be quite cryptic.
>
> Can you explain your intent again?
>
>
> > Or is there another or more clever way?
> >


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0