We don't bite newbies here... much | |
PerlMonks |
Perl Mason | Session Hash not stored in Browserby premsai (Initiate) |
on Oct 01, 2019 at 12:40 UTC ( [id://11106904]=perlquestion: print w/replies, xml ) | Need Help?? |
premsai has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
While working on an existing Perl/Mason project, suddenly it happened that when logging into the site as a user, am getting Access Denied error. I noticed that the login_submit.html page properly authenticates the user and is updating the session variable with the logged-in user's id within the login_submit.html page.
Then its redirected to another page ( say my.html ). But once redirected, I am getting Access Denied error because $m->session->{user_id} is no longer accessible there. if I check browser's session storage, I cannot find the session key/value set for user_id . Any idea what could be the reason ? I have not changed any configuration setting in Dhandler.pm script. Though I am pasting it below for your reference, in case someone can think of a possible reason. Note: Everything was working fine and I am almost 99% sure that I have not changed something that would have broken the login function. I was in fact working on a form update function which updates the User table.
Back to
Seekers of Perl Wisdom
|
|