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)
 trouble reading name field in cookie
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cavekid
Starting Member

6 Posts

Posted - 05 November 2005 :  16:15:30  Show Profile
Hi guys,
have just me mucking around with making a customized change-profile page. I have built it from scratch so I could design all the elements to fit with the rest of the site (and have the added details I wanted there). The logon routines all work, and the page itself functions okay, ...my problem is I have been trying to use the snitz cookie to govern the data that is populated in the relevent fields on the page (e.g if joeblogs logs on, that it looks at the cookie, see's his username there, and then brings up his details). I am a newbie at ASP, so any comments would be greatly appreciated, I have been using variations on this line of code for setting my name variable:

pipUserInfo__name = Request.Cookies("Snitz00")("Name")

is that correct? Basically if I put a known user name string in there such as:

pipUserInfo__name = "joeblogs"

the page works as it should and brings up that users details. I have checked the page to make sure the cookies are working (by using the line javascript:alert(document.cookie); I can see the snitz00 cookie is active and the user name is there.

Its been driving me nuts!!! Can anyone help out?

Cheers,

CK

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 05 November 2005 :  16:49:02  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Here's the code from inc_header.asp where the forum cookie is read:
strDBNTUserName = Request.Cookies(strUniqueID & "User")("Name")


So in your case you'd have to change your code to
pipUserInfo__name = Request.Cookies("Snitz00User")("Name")

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

cavekid
Starting Member

6 Posts

Posted - 05 November 2005 :  17:54:34  Show Profile
Thanks!!! Thats worked perfectly!! ...knew it had to be a good old case of, as technicians call it, PEBCAK ("problem exists between chair and keyboard")
Thanks again for such a quick response.
Go to Top of Page

maduko
New Member

USA
58 Posts

Posted - 17 March 2006 :  17:32:51  Show Profile  Visit maduko's Homepage
Why the heck doesn't that work for me?!?

I don't understand why this isn't working:


ForumName = Request.Cookies("Snitz00User")("Name")

Response.Write "<p>It's " & now() & " and my forum name is " & ForumName & "!</p>"


Any suggestions?



Places2ride.com

Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 18 March 2006 :  11:48:25  Show Profile  Visit AnonJr's Homepage
Did you change the unique forum name (strUniqueID) in config.asp to something other than 'Snitz00'? If you did you'll need to use that instead of Snitz00...

ForumName = Request.Cookies("whateverthevalueofstrUniqueIDisUser")("Name")
Response.Write "<p>It's " & now() & " and my forum name is " & ForumName & "!</p>"
Go to Top of Page

maduko
New Member

USA
58 Posts

Posted - 24 March 2006 :  15:13:15  Show Profile  Visit maduko's Homepage
Checked the config.asp file and it shows Snitz00.



Places2ride.com

Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 24 March 2006 :  16:28:44  Show Profile  Visit AnonJr's Homepage
hmmm. Have you checked to see if the cookie is really being set? Let me check on a couple of things when I get home in an hour or so.
Go to Top of Page

maduko
New Member

USA
58 Posts

Posted - 26 March 2006 :  14:59:12  Show Profile  Visit maduko's Homepage
I checked it using the variables tool under Admin Options.

But thanks for the tip! I hadn't thought to look at the cookies in my browser. I thought I had it fixed using this:

("ForumName")(UserID")

But that only works for the admin account.

When I view the cookies through my browser the Snitz00 value does have pword and name.



Places2ride.com


Edited by - maduko on 26 March 2006 15:23:36
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 1.01 seconds. Powered By: Snitz Forums 2000 Version 3.4.07