Solved

cookie name set in the directory

Posted on 2003-10-30
4
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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