Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - cookie with Username
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

cookie with Username

 Post Reply Post Reply
Author
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Topic: cookie with Username
    Posted: 12 October 2006 at 12:50am
Hi all:

I have wwf for 4 years,  now with v8, and my forum is part of a large portal that makes a lot of use of members accounts.

Before i added a cookie when the user logged in so it stored the username in a cookie with another name.
Now when i add the code "Response.Cookies(strCookieName)("U_NAME") = strLoggedInUsername" in register.asp, after Response.Cookies(strCookieName)("UID") = strUserCode, and then log in, no cookie is created.

When i try to retrieve the cookies content through a request.cookie, nothing appears.

How can i store the members usernames inside wwf's cookie so i can use it throughout the portal?


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: 12 October 2006 at 1:02am
Version 8 has a built in member API.

Edit in nootepad the file functions/functions_member_API.asp to find more details and how to enable this feature.
Back to Top
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2006 at 12:23am
thats great for someone tho has a loggin system other than wwf's one, which is not my case, as i converted my login system to wwf only a long time ago.

With last version i just added a line in register.asp to create another cookie with username, but its not working in this 8 version.

I added this line:
            Response.Cookies(strCookieName)("U_NAME")= strLoggedInUsername


after this code in register.asp:
                        'Write the cookie with the name Forum containing the value UserID number
               Response.Cookies(strCookieName)("UID") = strUserCode


but its not keeping it in the cookes. How can i store the username in a cookie so i can use all over the portal?

Thanks
Back to Top
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2006 at 11:03am
borg, i need your help.

where exacly should i insert the
response.cookie(strCookieName("U_NAME") = strLoggedInUsername ?
Back to Top
cbr600 View Drop Down
Groupie
Groupie
Avatar

Joined: 05 October 2003
Location: Portugal
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbr600 Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2006 at 11:17am
borg, nevermind. I got it.
Back to Top
 Post Reply Post Reply

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.