Jump to content

Recommended Posts

I have a purchase system where by the user selects options over a space of 3 pages.....using forms..

 

 

each choice is carried through right to the process page which is the 4th page, but im trying to find a way so that the user's selections become null if they go to a completely different page or they skip a page... or if they go back to the first page or press the back button... this would help to avoid a double entry of some of the same items...

 

 

how can this be done? I don't use sessions so i cannot kill a session as a session is not needed because its using forms throughout the entire thing..

 

what would you guys suggest ?

Link to comment
https://forums.phpfreaks.com/topic/68500-cancellation-automation/
Share on other sites

dont' kill the session, just empty the session variables that you need emptied. if you want to erase a session variable, you can unset() it or set it = "";

 

for instance,

 

$_SESSION['last_page'] = "";

 

will set that value to "" without killing the session.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.