Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: CGI Session - Refresh Problem

by d0353101 (Novice)
on Apr 25, 2008 at 05:32 UTC ( [id://682756]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found