Author |
Topic  |
|
d31
Starting Member
Australia
14 Posts |
Posted - 17 September 2002 : 09:38:09
|
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
|
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
|
 |
|
d31
Starting Member
Australia
14 Posts |
Posted - 17 September 2002 : 09:57:01
|
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 |
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 17 September 2002 : 10:01:47
|
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 |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 17 September 2002 : 10:05:05
|
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
|
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 17 September 2002 : 10:13:20
|
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 ~ |
 |
|
d31
Starting Member
Australia
14 Posts |
Posted - 17 September 2002 : 21:37:14
|
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 |
 |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 17 September 2002 : 22:58:56
|
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 |
 |
|
d31
Starting Member
Australia
14 Posts |
Posted - 17 September 2002 : 23:16:15
|
never mind, i set the cookies to website and it worked |
 |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 18 September 2002 : 05:00:05
|
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
|
 |
|
|
Topic  |
|