Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Cookie question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cookie question

 Post Reply Post Reply Page  12>
Author
freakdaddy View Drop Down
Groupie
Groupie


Joined: 24 January 2008
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakdaddy Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
freakdaddy View Drop Down
Groupie
Groupie


Joined: 24 January 2008
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakdaddy Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
freakdaddy View Drop Down
Groupie
Groupie


Joined: 24 January 2008
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakdaddy Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2008 at 7:23am
Bruce - any idea about reading it from the directory you have set? 
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
freakdaddy View Drop Down
Groupie
Groupie


Joined: 24 January 2008
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakdaddy Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
nekengren View Drop Down
Newbie
Newbie


Joined: 12 May 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote nekengren Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.