Solved

cookie name set in the directory

Posted on 2003-10-30
4
203 Views
Last Modified: 2013-12-18
I have 3 urls to my jobs site :-
 1-jobs.st.com
 2-employment.st.com
 3-people.st.com

when i open the url 1 and set cookie it store 'jchand@jobs[1]' in the directory,
if i use url 2 and set cookie it store 'jchand@employments[1]' in the directory,  and for
url 3 jchand@people.

the impact is if set cookie through url 1, I can not see the cookie in URL2 or 3 and its for every url.
Is there any way where I can set the cookie in URL 1 and use perfectly when I open the application using URL 2 or URL 3
0
Comment
Question by:Jagannath11
  • 3
4 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 9650471
For the cookie domain, you need to use st.com instead of the full host name. That laso means, of course, that you have to be consistent in the way the site is accessed, i.e., it always has to be ****.st.com, not IP address or a diferent domain name.
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9650489
Oops, left out a period, s/b domain=.st.com -- the first . before st is important.
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 30 total points
ID: 9650504
Syntax... setCookie(name, value, expires, path, domain, secure)
0
 

Author Comment

by:Jagannath11
ID: 9656539
Its really KOOL brother, thanks a lot

cheers
jagannath
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question