poolboi has asked for the wisdom of the Perl Monks concerning the following question:
http://localhost//cgi-bin//login.pl
after login is verified i will go into sayhttp://localhost//cgi-bin//options.pl
i am creating a login so that if ppl change the login.pl to options.pl, they won't be able to access options.pl so they need to login but to do this i need to use CGI::Session i know now that initializing it is something likehowever how do i know if i'm still in a session after my login page? so i'm not really sure about the codes and stuff, how do i do it to ensure i fullfill the above conditions? hope u all understand :)CGI::Session->name("SID"); $session = new CGI::Session(); $cookie = $cgi->cookie( -name => $session->name, -value => $session->id ); print $cgi->header( -cookie=>$cookie );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Session Usage Doubt
by trwww (Priest) on May 30, 2008 at 05:24 UTC | |
|
Re: CGI::Session Usage Doubt
by scorpio17 (Canon) on May 30, 2008 at 14:10 UTC |