in reply to Re: Passing form data between scripts
in thread Passing form data between scripts

Hi,

Using the session link you gave me, I read about the CGI::Session.

Can you tell me what I'm supposed to do with this line of code:
my $session = new CGI::Session("driver:File", undef, {Directory=>'/tmp +'});


I'm not sure what I'm supposed to do with it or how it's supposed to be used. Can you explain?

Thank you.

Replies are listed 'Best First'.
Re^3: Passing form data between scripts
by jbrugger (Parson) on Apr 01, 2005 at 04:57 UTC
    Here you create a new session object, and place the pointer to the object in $session.
    Anyway, better look here if you want to learn about sessions (that was one click away from the first page you entered :) )
    For your info, you need to store the session information on the webserver (either in a database, or on a file on the server). When you do another request and send your 'ticket' (session id), the server reads the proper session, and knows about your session data that is stored.

    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
      Hi,

      Thank you for the link about sessions. I'm beginning to understand. It was a good tutorial. I'm going to play around with it and see what I come up with. I'll also play around using hidden fields.

      Thanks for the info.