MiniVend Akopia Services

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

Re: Perl scripts in my catalog if I pass the session ID?



******    message to minivend-users from mikeh@minivend.com     ******

Quoting Mark Stosberg (mark@summersault.com):
>  I'm interested in writing my own Perl/SQL for parts my shopping cart,
> since I already
> have familiarity with these tools. If my perl script passes the session
> ID along to
> Minivend Pages that it links to, can I expect my script behave as if
> it's "inside" the catalog?
> 

If you check for a Cookie with MV_SESSION_ID in it, then you don't need
to write the session ID. Othewise, yes; that should do it, all other things
being equal.

I have been thinking about doing a mod_perl tlink/vlink for some time.
It would track session IDs, provide some level of authentication, and
do simple page delivery operations without interaction from MiniVend.

You can actually pass queries to MV on the command line if you have
set things up properly (check the top of bin/minivend and the top of
the dispatch routine). This allows simple tag interpretation without
all of the session / server overhead. In short:

	bin/tlink simple '[data products title 00-0011]'

To do this, you need to put an extra alias on your Catalog line:

Catalog simple /home/you/catalogs/simple /cgi-bin/simple /simple simple


-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Fast, reliable, cheap.              131 Willow Lane, Floor 2  | ||  _ \
Pick two and we'll talk.            Oxford, OH  45056         | || |_) |
 -- unknown                         <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| \_\
-
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


Search for: Match: Format: Sort by: