I'm running a test script to see if i can get the member_id in my cookie objects:
<% For Each strKey In Request.Cookies Response.Write strKey & " = " & Request.Cookies(strKey) & "<BR>" If Request.Cookies(strKey).HasKeys Then For Each strSubKey In Request.Cookies(strKey) Response.Write "->" & strKey & "(" & strSubKey & ") = " & _ Request.Cookies(strKey)(strSubKey) & "<BR>" Next End If Next %>
in inc_func_common.asp, i have my cookies set as follows:
else Session(strCookieURL & "username") = rs_chk("M_NAME") if strSetCookieToForum = 1 then Response.Cookies(strUniqueID & "User").Path = strCookieURL end if Response.Cookies(strUniqueID & "User")("Name") = rs_chk("M_NAME") Response.Cookies(strUniqueID & "User")("Pword") = rs_chk("M_PASSWORD") Response.Cookies(strUniqueID & "User")("Member_ID") = rs_chk("MEMBER_ID")
...but i cannot see the member_id cookie on my test script.
Why would you need that? If the user is logged in the MemberID variable gives you the member id, so why read it from the cookie?
I need to see if it displays in the script that I have in the beginning of my post, that's all. My project manager wants to do something with it (??). If you do know why i am not seeing it, upon looking at how I'm also declaring it in my inc_func_commons.asp file, would appreciate it.