|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cookies problem.
Hi,
I have created cookies on the page "/cgi-bin/test.cgi" but when I am going to see the cookies value on the file "/cgi-bin/tools/abc.cgi" then I didn't get the cookies value and found that there is no cookies on this page. Kindly solve my proble. Thank You softwareing . |
|
#2
|
||||
|
||||
|
Can you post the code you're using to set and retrieve the cookies?
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
|
#3
|
|||
|
|||
|
Cookies Problem.
Quote:
Hi ishnid, Thanks to take interest in my post. My problem is when I am going to set the cookies from the file "/cgi-bin/test.cgi" then the cookies is set properly and when I fetch the cookies in the same directory file then I also able to fetch the cookies value but when I am going to fetch the cookies value in the other directory like "/cgi-bin/admin/admin.cgi" then I found that there is no cookies is set i.e. I unable to fetch the cookies value. The codes for cookies that I have used are as follows: print "Set-Cookie:UserID=XYZ;\n"; print "Set-Cookie:Password=XYZ123;\n"; print "Set-Cookie:Expires=Tuesday, 31-Dec-2017 23:12:40 GMT;\n"; print "Set-Cookie omain=localhost;\n";print "Set-Cookie:Path=/perl;\n"; print "Content-type:text/html \n\n"; ...........Rest of the HTML Content.... And I am fetching the cookies value from the "$ENV{'HTTP_COOKIE'}" CGI environment variable. Thank You softwareing |
|
#4
|
||||
|
||||
|
would setting the cookie for the entire domain solve your issue, rather than a particular path?
__________________
--Ax without exception, there is no rule ... Heavy Haulage Ireland Targeted Advertising Cookie Optout (TACO) extension for Firefox The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones ![]() 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Cookies problem. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|