HTTP session

Hi,
It seems like I'm not able to establish a session, when I use NET::HTTP.
Here is a snippet of my code:

@h = Net::HTTP.new('xx.yy.com', 443)
@h.use_ssl = true
@h.start {|aSession|

        data = {}
                data.store("auth_type" ,"basic");
                data.store("username" ,"hh");
                data.store("password" ,"yy");

        response, data = aSession.post('/logon',nil,data,nil);
        print response
        print "\n"
        print data
        response, data = aSession.get('/myOrders',nil);
}
The last 'get' redirects my to the logon page as if the session is lost

here is the output:
#<Net::HTTPOK:0xf6f616c8>
#<Net::HTTPFound:0xf6f5de9c>
<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="/logon ...

is somebody able to spot the problem.

br
Hardy