Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cookie name set in the directory

Posted on 2003-10-30
4
Medium Priority
?
208 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 120 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

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.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

730 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