bartvanlente Posted April 22, 2013 Share Posted April 22, 2013 Hi, I just started process wire only I can not delete my session does anyone know how I can do that. Here is my code: $session->bestelling = $_POST; elseif(strcmp($status, 'success') === 0) { //Here must I delete $session->bestelling echo '<h1>Transactie geslaagd.</h1><p>Uw betaling van bestelling #' . $order . ' met iDEAL is geslaagd.</p>'; } Greetings, Bart van Lente Link to comment Share on other sites More sharing options...
kongondo Posted April 22, 2013 Share Posted April 22, 2013 Hi Bart, Welcome to ProcessWire! Check out this reference page. It might have what you want? Maybe $session->remove($name) The docs say: Remove/unset the session variable identified by the string $name This is not my area, just wondering. Link to comment Share on other sites More sharing options...
bartvanlente Posted April 23, 2013 Author Share Posted April 23, 2013 Yes, I read only the variable $name. I can't really found what I should do with this session to remove. something like this: $session->remove(bestelling) Link to comment Share on other sites More sharing options...
Wanze Posted April 23, 2013 Share Posted April 23, 2013 Hi, You can write like this: $session->remove('bestelling'); 1 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted April 23, 2013 Share Posted April 23, 2013 Also think of validating your post, to be shure that the post is save. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now