"be consistent" | |
PerlMonks |
CGI.pm, CGI::Session and Cookiesby digger (Friar) |
on Feb 09, 2004 at 20:34 UTC ( [id://327739]=perlquestion: print w/replies, xml ) | Need Help?? |
digger has asked for the wisdom of the Perl Monks concerning the following question:
Revered Monks,
I am currently working on a project that will have a members only area that requires some authentication and session tracking. Examining the excellent CPAN, I find and decide to use CGI::Session to manange my sessions. The code I am using to create my session and cookie is below. Hosting Environment: Win32 & IIS thru Verio. 1. If I don't use CGI::Cookie explicitly and then create my cookie using it's methods directly, I never even get a cookie. The CGI.pm cookie method doesn't throw any errors, I just don't get a cookie. I installed the latest version of CGI.pm in my local lib, and no luck. I have Super Searched and Googled to no avail. 2. When I do get a cookie using the method above, it doesn't have the CGISESSID in it. I look at it with ethereal as it comes in, and open the resulting cookie in a text editor after the fact, and the sesion ID isn't there. I can print the session id variable and it appears to be generated correctly, I just can't get it in the cookie. Is my code obviously flawed? Did I miss a caveat in my searching? I have played with CGI::Session in the past, and gotten this to work with a test script in a BSD hosting environment. Is there an issue with Win32? Any direction is greatly appreciated.
Back to
Seekers of Perl Wisdom
|
|