/    Sign up×
Community /Pin to ProfileBookmark

another cookie question

ok, i can retrieve these cookie values fine.
but, the red one doesnt come up when i alert(document.cookie), why and how can i fix that?

[code]
# Internet Explorer cookie file, exported for Netscape browsers.

<website with held> TRUE / FALSE 1110531323 ** 0.32340600110757578024250155189-g-1107575780

<website with held> TRUE / FALSE 1110531601 last** 1107576058

<website with held> TRUE / FALSE 1139475340 **_uniq 2005-02-04

<website with held> TRUE / FALSE 1139475323 xt6Yr4e33D 35659957578024250155189

<website with held> TRUE / FALSE 1139475323 *****unique_date 2005-02-04

<website with held> TRUE / FALSE 1110531425 **uid 86376h6777030774003575753730774S067700000466670757007047580e0300

<website with held> TRUE / FALSE 1139475340 **_uniq_ 2005-02-04

[color=red]<website with held> TRUE / FALSE 1115939425 ***login wwwtttfffuuu%2B52cdf7456c6a5cb40cd1322b1fc14bf2[/color]

<website with held> TRUE / FALSE 1115939425 toolbar wwwtttfffuuu%2BC%2B1fbfb23351e3580651395ab721f5e935

<website with held> TRUE / FALSE 1115939425 ***remember wwwtttfffuuu

<website with held> TRUE / FALSE 1111539425 **_randseed 2387-80235924770736

<website with held> TRUE / FALSE 1115939425 *****timer 7ae832267a73c0665ddca05eee1991d7

<website with held> TRUE / FALSE 1139475425 **_uniq_wwwtttfffuuu 2005-02-04
[/code]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JFeb 05.2005 — Not too sure here but looking at that info it looks like it is a login cookie.

This might be why it will not show, maybe for security reasons
Copy linkTweet thisAlerts:
@ScriptNoobie86authorFeb 05.2005 — the thing is, with my cgi proxy server, i can manage cookies and it can come up so i know its possible to pull it up, all i need to know is how.

edit: yes it is a login cookie.
Copy linkTweet thisAlerts:
@PalrosFeb 05.2005 — hmm... from what you gave I really can't tell anything. My best geuss is that you didn't include a dommain or path when you create the cookie, so the page you're tryng to see it with does notice it.

domain is the domains which can veiw it. for google it'd be...

domain=google.com

to make it accessable by all google pages, such as images.google.com and www.google.com.

path is the highest directory which can read the cookie. so if...

path=/

then any page in the specified domain can read the cookie.

so...

(expires is used to set long range cookies that are saved till the expiration date. should be in gmt format.)

var cookie="cookiename="+escape(cookiedata)+";domain=google.com;path=/;expires="+adate+";";

document.cookie = cookie;
Copy linkTweet thisAlerts:
@ScriptNoobie86authorFeb 06.2005 — it writes the red value with the same cookie though...
×

Success!

Help @ScriptNoobie86 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...