| Author |
Topic Search Topic Options
|
freakdaddy
Groupie
Joined: 24 January 2008
Status: Offline
Points: 79
|
Post Options
Thanks(0)
Quote Reply
Topic: Cookie question Posted: 27 February 2008 at 8:33am |
|
It appears that the cookies for WWF are stored based off the forum directory name. How would I access this then? If I change it so the forum stores the cookies from /, then I have no issues. Code like this would work fine: name = Trim(Mid(Request.Cookies("WWF9sLID")("UID"), 1, 44))
How do I grab the UID if WWF places the cookie in the forum folder?
Thanks for any help.
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 February 2008 at 9:33am |
|
If you look in the Settings file in the includes folder, you can change this to the root of the website.
|
|
|
 |
freakdaddy
Groupie
Joined: 24 January 2008
Status: Offline
Points: 79
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 February 2008 at 8:15pm |
|
Yeah, I saw all this, but when I tried it, it didn't seem to login people anymore. Is there a syntax that someone knows for allowing it to be in the forum folder, and access it?
I know others have had issues, that's why I'm asking.
|
 |
freakdaddy
Groupie
Joined: 24 January 2008
Status: Offline
Points: 79
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 February 2008 at 7:23am |
|
Bruce - any idea about reading it from the directory you have set?
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 February 2008 at 2:10pm |
|
I have sucessfully changed it on my own websites.
You comment out the one that fixes it to the forum folder (add a ' at the start of the line) And you remove the comment ( ' ) from the start of the line that looks like :
'strCookie = "/"
You will need to log out and log back in for it to take affect.
|
|
|
 |
freakdaddy
Groupie
Joined: 24 January 2008
Status: Offline
Points: 79
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2008 at 1:55am |
|
Hi - yeah, like I said, I tried this from the start, and I had no problems getting the info from the cookie, and it worked fine, however it wouldn't log me in.
I just tried it again though, and I had the same issue occur, but this time I deleted all of the cookies for the site, and then tried to re-login, and it was fine.
Just have to let all the members know about this I guess, and then change it. Thanks.
|
 |
nekengren
Newbie
Joined: 12 May 2008
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 May 2008 at 9:08pm |
Scotty,
Yes, the changes to strCookiePath do work. Cookies get set at different path levels successfully. However, the actual string cookie value such as
WWF9sLID=UID=loginuser8Z9B6D1BZ2 always has the suffix. I'd really like to retrieve just the 'loginuser' string for the other applications I am going to integrate. I suppose I should experiment and see if that suffix is always the same length so I can strip if off.
Neal
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 13 May 2008 at 8:25am |
|
The suffix as you call it is actually the cookie key, you use the cookie key to retrieve the part of the cookie you need.
cookie = Request.Cookies(CookieName)(CookieKey)
|
|
|
 |