Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 29th, 2009, 08:42 AM
softwareing softwareing is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 2 softwareing User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 55 sec
Reputation Power: 0
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
.

Reply With Quote
  #2  
Old June 29th, 2009, 09:58 AM
ishnid's Avatar
ishnid ishnid is online now
kill 9, $$;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Sep 2001
Location: Dublin, Eire
Posts: 5,986 ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level)ishnid User rank is General 18th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 3 Weeks 1 Day 15 h 37 m 22 sec
Reputation Power: 2212
Can you post the code you're using to set and retrieve the cookies?

Reply With Quote
  #3  
Old July 3rd, 2009, 01:37 AM
softwareing softwareing is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 2 softwareing User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 55 sec
Reputation Power: 0
Cookies Problem.

Quote:
Originally Posted by ishnid
Can you post the code you're using to set and retrieve the cookies?


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-Cookieomain=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

Reply With Quote
  #4  
Old July 3rd, 2009, 06:49 AM
Axweildr's Avatar
Axweildr Axweildr is offline
'fie' on me, allege-dly
Dev Shed God 15th Plane (12000 - 12499 posts)
 
Join Date: Mar 2003
Location: in da kitchen ...
Posts: 12,277 Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)Axweildr User rank is General 56th Grade (Above 100000 Reputation Level)  Folding Points: 143856 Folding Title: Super Ultimate Folder - Level 1Folding Points: 143856 Folding Title: Super Ultimate Folder - Level 1Folding Points: 143856 Folding Title: Super Ultimate Folder - Level 1Folding Points: 143856 Folding Title: Super Ultimate Folder - Level 1Folding Points: 143856 Folding Title: Super Ultimate Folder - Level 1Folding Points: 143856 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 1 Week 3 Days 13 h 14 m 41 sec
Reputation Power: 4721
Send a message via Google Talk to Axweildr
Orkut
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 ...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Cookies problem.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT