Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Cookies
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

d31
Starting Member

Australia
14 Posts

Posted - 17 September 2002 :  09:38:09  Show Profile  Visit d31's Homepage  Send d31 an ICQ Message
Hey guys,

I'm trying to get information back from the cookie...at the moment i'm jus trying to response.write whats inside a cookie

i have got
<!--#include file="/forum/config.asp"-->
<%
Response.Write Request.Cookies(strUniqueID & "User")("PWord")
%>

but nothing gets written back from the cookie...

What am i doing wrong?

Thanks in advance
Moving to a more appropriate location...- Dave M.


Edited by - davemaxwell on 17 September 2002 10:03:05

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 September 2002 :  09:54:24  Show Profile
This is not a help forum. The help forums start with "Help". This one says "MOD Add-On Forum (W/Code)".

If you want to get help quickly, make sure you are posting in the correct forum otherwise, help will be slow to come to you.

Support Snitz Forums
Go to Top of Page

d31
Starting Member

Australia
14 Posts

Posted - 17 September 2002 :  09:57:01  Show Profile  Visit d31's Homepage  Send d31 an ICQ Message
Well...considering it is part of an add-on i figured i could put it in this forum...but seeing as i'm getting flamed i suppose i'll put it in the other forum?

Thanks for your 'help'


Edited by - d31 on 17 September 2002 09:59:09
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 17 September 2002 :  10:01:47  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
It could be a number of things:

1) The fieldname could be incorrect
2) The value in the field could be empty
3) The system may be looking in the incorrect place (ie cookie is set to forum, not website....

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 September 2002 :  10:05:05  Show Profile
I don't see what part of my post you consider a flame. And your sarcasm is not appreciated here.

Here is the description of this forum:
"If you have developed a Modification to Snitz Forums 2000, Then this is the place to post your code, and help others who have posted their code to refine theirs for possible future inclusion in the base line code."

Once you have gotten the help you need, then you can post your code in this forum. You also never mentioned anything about this being part of a mod you're doing. You only asked for help with cookies.

Support Snitz Forums
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 17 September 2002 :  10:13:20  Show Profile
I might not be right, but isn't there a strCookiePath variable or something? I don't have the code in front of me, so I can't check it.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

d31
Starting Member

Australia
14 Posts

Posted - 17 September 2002 :  21:37:14  Show Profile  Visit d31's Homepage  Send d31 an ICQ Message
I've taken that code directly from some of the source code inside snitz...i figured that using request.cookies would automatically get the cookies for the site...

I'm just looking to see what user is currently logged in

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 17 September 2002 :  22:58:56  Show Profile  Visit Gremlin's Homepage
Does the cookie exist ?

Are you running this from your forum directory ? Are you running it from the same URL/Domain that the cookie is assigned too ?

Does strUniqueID actually hold a value ?

Browsers transmit their cookies to the server whenever the page being browsed has its domain name match that of a cookie it has locally, it will send the cookie to the server with page request issued by the client.

Kiwihosting.Net - The Forum Hosting Specialists

Edited by - Gremlin on 17 September 2002 22:59:58
Go to Top of Page

d31
Starting Member

Australia
14 Posts

Posted - 17 September 2002 :  23:16:15  Show Profile  Visit d31's Homepage  Send d31 an ICQ Message
never mind, i set the cookies to website and it worked

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 18 September 2002 :  05:00:05  Show Profile  Visit Gremlin's Homepage
quote:
Are you running this from your forum directory ?
Guess you weren't then

Cookies can be a pain sometimes !

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07