Print Page | Close Window

cookie with Username

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21571
Printed Date: 08 April 2026 at 8:53pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: cookie with Username
Posted By: cbr600
Subject: cookie with Username
Date 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?





Replies:
Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: cbr600
Date 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


Posted By: cbr600
Date Posted: 14 October 2006 at 11:03am
borg, i need your help.

where exacly should i insert the
response.cookie(strCookieName("U_NAME") = strLoggedInUsername ?


Posted By: cbr600
Date Posted: 14 October 2006 at 11:17am
borg, nevermind. I got it.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net