Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Capturing the member_id in cookie
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mister_Ed
Starting Member

24 Posts

Posted - 27 May 2003 :  12:57:57  Show Profile
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.


???
Ed

Edited by - ruirib on 27 May 2003 17:24:12

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 May 2003 :  18:44:15  Show Profile  Send ruirib a Yahoo! Message
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?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Mister_Ed
Starting Member

24 Posts

Posted - 30 May 2003 :  15:02:32  Show Profile
quote:
Originally posted by ruirib

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.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 May 2003 :  18:40:35  Show Profile  Send ruirib a Yahoo! Message
Have you looked into the cookie? Is the info there?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 30 May 2003 :  19:43:31  Show Profile
quote:
Originally posted by ruirib

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 want to do the same thing soon - to find out what userid was "last" use on that computer, not what userid is in use "now".
Go to Top of Page

Mister_Ed
Starting Member

24 Posts

Posted - 09 June 2003 :  15:25:34  Show Profile
quote:
Originally posted by ruirib

Have you looked into the cookie? Is the info there?



No, I wouldve seen the cookie info for the member_id printed out in the first script I posted on this thread
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 June 2003 :  07:40:42  Show Profile  Send ruirib a Yahoo! Message
I'm assuming there could be a problem with the writing or the reading, that's why I asked you to open the cookie and see what's inside.

Anyway you can use the code by OneWayMule to get the ID from the user name.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07