Now back on a perl project and haveing problems with sessions
I basically want to do simpliar things you can do in php like if (sees_var = 'whatever') do this
I've been on search:cpan etc and can print from a session when storing from a cgi param, but on next visit to same page a new session is constantley being made.
Some of my code from cpan
$session = new CGI::Session("driver:File", undef, {Directory=>"/tmp"}); $sid = $session->id(); $cookie = $cgi->cookie(CGISESSID => $sidvariable);
use CGI::Session;
print $cgi->header( -cookie=>$cookie );
I have brought things back to it's simplist state and now even get an error saying
Can't call method "cookie" on an undefined value
I was also trying
$sid = $cgi->cookie('CGISESSID') ¦¦ $cgi->param('CGISESSID') ¦¦ undef;
$session = new CGI::Session(undef, $sid, {Directory=>'/tmp'});
to try and retrieve last sess value but no go, new sessions always being created
Any help or a simply script would be greatly appreciated
Thanks
Trent