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
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: 13 May 2008 at 1:29pm
Well I think maybe you didn't understand my post.  As an example
 
response.write request.cookies("WWF9sLID")("UID")
produces the response
 
nekenxxxxxxxxxxxxx
 
The value is the login+suffix (some kind of encryption key?)
 
I want just the login part of the value.


Edited by WebWiz-Bruce - 13 May 2008 at 4:02pm
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 1:40pm
The login is not kept in a cookie, what you are seeing is an autologin cookie which can sometimes contain parts of the username.

The 32 bit session tracking code is stored in another cookie, this is used to track users around the forum but only lasts for a 20 minute period.
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: 13 May 2008 at 3:33pm

hmmm.  Well, if you say so.  However, I don't see it.  I dump the Session collection which has only one item when logged in.

dtmUnReadPostCheck=2008-05-13 10:21:54
The complete Cookies collection is
 
Removed for security

Also, normally Session.SessionID is just a meaningless encrypted string ASP creates to track visitor sessions in memory.


Edited by WebWiz-Bruce - 13 May 2008 at 4:01pm
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 3:56pm
If you explain what it is that you are trying to achieve maybe able to help.

The 'WWF9sID=SID' cookie contains the forums own 32 bit session tracking code. It uses it's own session tracking rather than the ASP one as this allows it to be more secure and flexible and also allows Web Wiz Forums to be used with load balanced servers and server farms as you can switch the session to be stored in the database rather than the servers memory.

Edited by WebWiz-Bruce - 13 May 2008 at 4:00pm
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: 13 May 2008 at 4:07pm
I just want the login.  without extra characters attached.  I can't do custom queries on the WebWiz tables if I don't know the key.
 
 
Thanks.
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 4:50pm
It sounds like you would be better of using the built in HTTP XML API.

This is a very powerful API which can be used to talk directly to web wiz forums and can return full details on members like their login code which you can then place into a cookie to auto-login the user to Web Wiz Forums, as well as other details which you can use in your custom quires including the Aurthor_ID which is what is used in Web Wiz Forums own SQL when updating details of a member.

For a full list of methods and actions point your browser as the HttpAPI.asp file in the root of your forum.

The API can be used for many things including adding new members, updating passwords, and many other things. I believe there is around 20 different actions that can be performed with the API at the present time.
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: 13 May 2008 at 6:33pm
yes, I may want to use the XMLAPI.  Thanks.
 
I did some investigation and discovered I can use the
cookie WWF9sLID UID  to query for tblauthor.user_code which gives me the wanted tblauthor.username
 
tblauthor.user_code  and cookie WWF9sLID UID   change with each login.
 
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: 14 May 2008 at 8:26am
Probably best to use the API as this way you can query Web Wiz Forums and get the Author_ID for a member which never changes.
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.