Hi all
Have been trying to get CGI:Session integrated on my site . . .
I am wanting to store some variables in session ID's for retrieval at a later date.
My application is a content management system, with user authentication.
So the process is :
1. User logs in and a session variable gets set for the username.
2. Page redirects to content management.
3. Session variable needs to be retrieved.
So the extract of my user validation code is :
################################
use CGI:Session;
my $session = new CGI::Session("driver:File", undef, {Directory=>"/tmp"});
$session->param(-name=>'name', -value=>$username);
################################
And the extract of my other pages is :
################################
use CGI::Session
my $name = $session->param('name');
print "Your name is " . $name;
################################
Basically I am not getting any output (not even the words 'Your name is')
Any ideas ??
Thanks in advance
Nigel Wilson
"kiwi-kid"
Have been trying to get CGI:Session integrated on my site . . .
I am wanting to store some variables in session ID's for retrieval at a later date.
My application is a content management system, with user authentication.
So the process is :
1. User logs in and a session variable gets set for the username.
2. Page redirects to content management.
3. Session variable needs to be retrieved.
So the extract of my user validation code is :
################################
use CGI:Session;
my $session = new CGI::Session("driver:File", undef, {Directory=>"/tmp"});
$session->param(-name=>'name', -value=>$username);
################################
And the extract of my other pages is :
################################
use CGI::Session
my $name = $session->param('name');
print "Your name is " . $name;
################################
Basically I am not getting any output (not even the words 'Your name is')
Any ideas ??
Thanks in advance
Nigel Wilson
"kiwi-kid"