Hammy has asked for the wisdom of the Perl Monks concerning the following question:
My hope is to have no cookie value show up the first time through. I then wish to refresh the page (to simulate another page calling it) and have it show up. This is just a simple test before I put the logic into my existing scripts. Any help would be much apprciated. Thanks$q = new CGI; my $cookievalue = $q->cookie('User_Session'); print "Content-type: text/html\n\n"; $initcookie = $q->cookie( -name=>'User_Session', -value=>'abc', -expires=>'', # leave this blank -path=>'/', -domain=>'www.thedialogcenter.com', -secure=>0 ); print "The cookie value is : $cookievalue<br>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem retrieving session cookies
by jasonk (Parson) on Apr 10, 2003 at 02:58 UTC | |
by Hammy (Scribe) on Apr 10, 2003 at 03:19 UTC | |
by benn (Vicar) on Apr 10, 2003 at 10:10 UTC | |
by Hammy (Scribe) on Apr 10, 2003 at 13:49 UTC | |
by benn (Vicar) on Apr 10, 2003 at 14:27 UTC | |
|