[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] How to create a page that automatically logs out customer
Try this, it works by itself and on the page that's loaded:
[userdb function=logout hide=1 clear=1] (works with 3.12 and up)
Bye,
-Gideon
> ****** message to minivend-users from Jarno Niemela <jargon@iki.fi>
******
>
> Hello everyone.
>
> I'd like to know is it possible to create a page that automatically
> logs out customer when the page is loaded.
>
> ie. Is there a tag that logs out customer so that the customer don't
> have to press any buttons.
>
> The reason for this is that,I've given up with the minivend order process
> system, and
> I have created my own version using Java servlets.
>
> This is because the minivend doesn't seem to support online bank accounts
or
> SET transactions. And when I tried to implelemnt them using minivend user
> tags,
> I got nowhere.
>
> I've now created a new checkout page that instead of calling minivend
order
> process system,
> forwards all needed data to the servlet, and the servlet handles the
entire
> order process.
>
> The problem however is that what would be the best way to clear the users
> shopping cart,
> or preferably log out the customer.
>
> Currently I've solved the problem by creating a custom version of
> receipt.html, to
> which the customer is redirected after the order processing is done.
>
> The page prints the receipt to the customer and executes following perl
code.
> [PERL]
> put_session();
> get_session();
> init_session();
> [/PERL]
>
> The code is directly taken from the minivend perl file
> (.../minivend/bin/minivend).
> From do_process function, at the spot where the cancel tag is processed.
>
> And I'd like to know is there any neater way to do this, or preferably is
> there a way
> that I could log out the customer without returning to minivend at all.
>
> I'll publish a link to the order process servlet source after I've gotten
> the code finished.
>
> Jarno Niemela.
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>