in reply to Re: How can i access a session(CGI::Session) variable in other forms?
in thread How can i access a session(CGI::Session) variable in other forms?

no i didnt save the session id. should i?
  • Comment on Re^2: How can i access a session(CGI::Session) variable in other forms?

Replies are listed 'Best First'.
Re^3: How can i access a session(CGI::Session) variable in other forms?
by derby (Abbot) on May 08, 2006 at 17:29 UTC

    I'm assuming when you say access these variable in other forms you mean in other cgi scripts (or other invocations of this one). If that's the case then, yes, you need some way to propogate the sessionid across different processes. One way is cookies, another is hidden form fields and another is url-rewritting. Cookies tends to be the easiest but some users get freaked out by cookies deny them from being set. If you have to deal with those users then you need to use one of the other approaches. Have you read through CGI::Session::Tutorial?

    -derby
      yes i want to access them in other CGI scripts.so you mean to say that i need to use cookies to persist the session id. I will try that... Thank you very much