Sorry, it's working, the problem belongs to the session part.
I can store and retrive the cookie, but the session doesn't get into the MySQL table, and I can't read ans store session variables.
OK, I've tried it.
I choose the cookie method for storing the session id.
But somehow, in the protected file I can't read the cookie.
Here are parts of the code:
login.cgi
...
our $cgi = new CGI;
our $session = new CGI::Session("driver:MySQL;id:MD5", undef, {Handle=>$dbh});
our $cookie =...
Hello!
I've made a simple login page in perl/cgi (CGI and CGI:Session), and I have a file which I'd like to reach only from authenticated users.
My problem is that I can't reach $cgi variable and the $session variable from the 2nd file, which I'd like to restrict.
I'm not using any packages...
Hi!
I need to use regular expressions with backslash, both in the string and the regexp too. I cant make it work!
With quotemeta or "" it takes out the single backslash from it, but works. (I don't want this)
Any other possibilities I tried, didn't worked.
my $string = 'words AUTH\SYS...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.