Re: Perl Authentication Handler and Cookie Issue

2007-02-21 Thread Sumit Shah
Thanks Robert. That did the trick. Sumit Robert Landrum wrote: Sumit Shah wrote: I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
Hello, I have modified my code to handle such scenarios. But the handler still fails to fetch the cookies. The browser does pass the cookies. I can see them in IEHTTPHeaders. I would appreciate if someone could let me know why this could happen? Thanks Sumit Robert Landrum wrote: Sumit

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
Hello, I did a small test to see if I can fetch the cookies without using PerlAccessHandler and PerlAuthenHandler. I was able to fetch the cookies using the following directive: FilesMatch \.(html)$ *SetHandler perl-script PerlHandler CAS::SSO */FilesMatch and NOT if I use

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Rafael Caceres
Sumit, Fetching the cookie has nothing to do with the Perl handlers. They are setting the cookie. You could check this with a small program such as: #!/point/to/your/perl -T include CGI; use vars qw{$query}; # use vars qw{$cookie}; $query = new CGI; $cookie = $query-cookie(YOUR COOKIE NAME) || ;

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Perrin Harkins
On 2/20/07, Sumit Shah [EMAIL PROTECTED] wrote: I did a small test to see if I can fetch the cookies without using PerlAccessHandler and PerlAuthenHandler. So, you're saying that CGI::Cookie works for you from the PerlHandler phase but not from the PerlAccessHandler phase. And I assume you're

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
Thanks. Yes, my handler gets invoked when I set it up as PerlAccessHandler or PerlAuthenHandler but does not fetch any cookies. I am not sure if it has anything to do with the requests (.jsp files) its handling. I will try to dump the headers and see what it gets. Thanks Sumit Perrin

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Michael Peters
Sumit Shah wrote: Thanks. Yes, my handler gets invoked when I set it up as PerlAccessHandler or PerlAuthenHandler but does not fetch any cookies. I am not sure if it has anything to do with the requests (.jsp files) its handling. My guess is that something else is running first and

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
The jsp pages are also handled by JSERV. I am not sure if JSERV is kicking in and consuming the headers. Is there a way to check which module is being executed and in what order? Thanks Sumit Michael Peters wrote: Sumit Shah wrote: Thanks. Yes, my handler gets invoked when I set it up as

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Sumit Shah
I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exists($hashMap{'SSOTokenID'})) condition fails. Does it have anything to do with data

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Perrin Harkins
On 2/20/07, Sumit Shah [EMAIL PROTECTED] wrote: I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exists($hashMap{'SSOTokenID'})) condition

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Robert Landrum
Sumit Shah wrote: I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exists($hashMap{'SSOTokenID'})) condition fails. Does it have anything

Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Sumit Shah
Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. Can't call method value on an

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Michael Peters
Sumit Shah wrote: Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. First thing I'd

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Sumit Shah
Yes. I checked that and the browser is sending the cookie. I used IEHTTPHeaders for it. Does it have anything to do with the PerlAuthenHandler that it does not have the cookie at the authentication stage of the request? Does it need anything else to be set in order to fetch the cookies? Thanks

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Robert Landrum
Sumit Shah wrote: Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. my $token =