spewn
Programmer
- May 7, 2001
- 1,034
i'm using this:
and setting the cookie:
I want to set the cookie still, but not call up the header...if i call header, then i can't use my redirect.
i want to do this:
but of course that doesn't work.
any ideas?
thanks!
- g
Code:
$cgi = new CGI;
$sid = $cgi->cookie("CGISESSID") || undef;
$session = new CGI::Session(undef, $sid, {Directory=>'/tmp'});
$cookie = $cgi->cookie(CGISESSID => $session->id);
$sSid = $session->id();
and setting the cookie:
Code:
print $cgi->header(-cookie=>$cookie);
I want to set the cookie still, but not call up the header...if i call header, then i can't use my redirect.
Code:
print "Location: [URL unfurl="true"]http://uk.topsurveyguide.com/?$sSid\n\n";[/URL]
i want to do this:
Code:
print $cgi->(-cookie=>$cookie);
but of course that doesn't work.
any ideas?
thanks!
- g