d0353101 has asked for the wisdom of the Perl Monks concerning the following question:
main.cgi is having left menu and right part is for doing some action.
in all the CGI files including main.cgi I am writing this code before start_html to manage the session:
---------------------------------------
---------------------------------------my $cgi = CGI->new; my $login_user_id = $cgi->param('user_id'); ########### -- Creating The session--################## my $session = CGI::Session->new( undef, $cgi, {Directory=>'/tmp'} ); my $cookie = $cgi->cookie(CGISESSID => $session->id ); print $cgi->header(-cookie=>$cookie); print $cgi->start_html("ADD CATEGORY");
But when I click any link (like add payment) on the left menu. a new session is getting created every time.
Please help... I dont want a new session.
I m stuck in it since last 2 days and getting dumbheaded. Please help :-(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI session problem.
by moritz (Cardinal) on Jul 29, 2008 at 09:14 UTC | |
by d0353101 (Novice) on Jul 29, 2008 at 10:02 UTC | |
by moritz (Cardinal) on Jul 29, 2008 at 10:06 UTC | |
by d0353101 (Novice) on Jul 29, 2008 at 11:07 UTC | |
by moritz (Cardinal) on Jul 29, 2008 at 11:21 UTC | |
|
Re: CGI session problem.
by Anonymous Monk on Jul 29, 2008 at 10:14 UTC | |
by moritz (Cardinal) on Jul 29, 2008 at 10:33 UTC |