MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

How to create a page that automatically logs out customer



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).

Search for: Match: Format: Sort by: