[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: getting session ID/name
****** message to minivend-users from Kyle Hayes <khayes@quicknet.net> ******
On Mon, 7 Jun 1999, Ryan Hertz wrote:
> ****** message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com> ******
>
> At 04:52 PM 6/7/99 , Kyle Hayes wrote:
> >****** message to minivend-users from Kyle Hayes <khayes@quicknet.net>
> ******
> >
> >
> >I am trying to generate a unique ID based on the session ID and the time.
> >I found some code in the minivend code that seems to do what I want, but I
> >can't call it. I took the code and copied it into a GlobalSub in
> >minivend.cfg.
> >
> >The code gets the current time with gmtime and the current session name
> >with Vend::Session::session_name(). So far so good. But, it doesn't
> >work. The session name is always blank.
> >
> >How do I get the session name? I can see it in the URL. What magical
> >incantation will get it for me? I looked all over in the manual and apart
>
> [data session id]
>
> I find that searching the HTML docs on minivend.com can be faster than
> digging through the printed version, however, compulsive use of Post-It
> notes has increased my personal search time of the docs. ;-)
>
> The manual does have a good description of all the session data you can
> access.
I'll look at the HTML docs again...
I really want to be able to get it from within a GlobalSub. I am trying
to generate a complete unique ID within a GlobalSub. I use the time plus
the session ID, but I only get the time back out. The session ID is
returned as blank.
I tried things like:
- $Vend::Session::get_name()
- $Vend::Session::SessionName
- Vend::Session::get_name()
- Vend::SessionName
- $Vend{'session'}->{'id'}
- $Vend{'session'}->{'session_name'}
etc.
I really want to do this within a GlobalSub. The code I am using is
directly lifted from some of the CyberCash code in Order.pm... It just
doesn't work when in a GlobalSub.
Any ideas?
Best,
Kyle
-
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