[ic] reading a session

Stefan Hornburg racke@linuxia.de
29 Aug 2000 18:11:56 +0200


Mathias Picker <mathiasp@venus.virtual-earth.de> writes:

> On 29 Aug, Stefan Hornburg wrote:
> > Mathias Picker <mathiasp@venus.virtual-earth.de> writes:
> > 
> > [...]
> >> > Then in your retrieve (which must be a Global usertag), do something like:
> >> > 
> >> > 	my $safe = new Safe;
> >> > 	my $sess_string = $Tag->file("tmp/$id_to_retrieve.save");
> >> > 	my $session_ref = $safe->reval($sess_string);
> >> 
> >> And what does this get me?? What is $session_ref, can I make it to my
> >> session, so route_order(...) works?
> > 
> > Perl code => String representation => File 
> > => String representation => Perl code
> > 
> > $session_ref is as any other session.
> 
> So, can I say $Vend::Session = $sess_string ???? Seems not (I tried) How
> do I set it to be the current session?

$Vend::Session = $session_ref 
makes probably more sense (just an assumption based on Mikes example code).

Ciao
        Racke

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Coding from hell and back <---