in reply to Re: CGI Session - Refresh Problem
in thread CGI Session - Refresh Problem

Dear Rhesa, Many thanks for making this correction !! It worked like wonder.

It resolved one query but still same Old questions are there:
1. I am having administrator privilleges. On which path cookies are being stored. Cookies are not being stored at "C:\Documents and Settings\Administrator\Cookies"

2. ( I do NOT want to use cookie)
If I press refresh button on browser for "query.cgi" it creates a new session. I want the same session after refresh button is pressed. ( I do NOT want to use cookie) Please help me to achieve this.

Replies are listed 'Best First'.
Re^3: CGI Session - Refresh Problem
by rhesa (Vicar) on Apr 25, 2008 at 12:51 UTC
    Those questions are answered in the manual, as well as in the excellent tutorial.

    1. You set the directory where sessions are stored with the Dir parameter;
    2. Instead of printing $cgi->header(...), you can also use $session->header(). That contains the logic for whether you need a new cookie or not.