Solved

cookie name set in the directory

Posted on 2003-10-30
4
201 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
Comment Utility
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
Comment Utility
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
Comment Utility
Syntax... setCookie(name, value, expires, path, domain, secure)
0
 

Author Comment

by:Jagannath11
Comment Utility
Its really KOOL brother, thanks a lot

cheers
jagannath
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now