No such thing as a small change | |
PerlMonks |
CGI::Session "cache" issueby Zhris (Initiate) |
on May 23, 2011 at 06:31 UTC ( [id://906243]=perlquestion: print w/replies, xml ) | Need Help?? |
Zhris has asked for the wisdom of the Perl Monks concerning the following question: Hello, I have been working on an old Perl login script, to make a couple of improvements. I have ran into a couple of problems with CGI::Session. Upon login, if I use a header redirect to the homepage (a html webpage), then click on the "members zone" link, it will tell me that i'm not logged in. If I then re-click the same link, it will display what I expect, the "members zone" (logged in). This problem does not occur if I header redirect to the "members zone" directly after logging in. Another, I think related issue, the "Members Zone" is located "http://domain.com/Members.pl". I also have the directory "http://domain.com/Members" which contains an index.php file that redirects to "http://domain.com/Members.pl". It will also tell me that i'm not logged in, no matter what i try. These issues seem to be related to the cache, and that its using the same compiled output of the "members zone" from before logging in. However, upon clearing my cache, then testing, the problem still occured. Why is this problem occurring, and how can I resolve it? Here are the relevant sections of my code: Login:
Members Zone:
Thanks, Chris
Back to
Seekers of Perl Wisdom
|
|