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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Use login cookie on rest of site
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jnkml
Starting Member

10 Posts

Posted - 28 April 2002 :  14:55:07  Show Profile
I'd like to be able to use the forum's member table on other parts of my website. Can someone tell me what the cookies are named for username, password and save password so I can use the same cookies on the rest of my site? (Reading through the code it looks like they might be "User" for username and "userID" for password, but I can't figure out the Remember Me one.)

Thanks in advance for any help.

Doug G
Support Moderator

USA
6493 Posts

Posted - 28 April 2002 :  14:56:49  Show Profile
Search the forums here. This topic has been discussed often.


======
Doug G
======
Go to Top of Page

jnkml
Starting Member

10 Posts

Posted - 28 April 2002 :  16:43:52  Show Profile
Actually I had already searched the forums, but hadn't found an answer to my particular question.

With some experimentation, I found out that all three items are rolled into one big cookie called SnitzOOUser, such that if you put the following code on a page:

<%= Request.Cookies("Snitz00User") %>

you get:

Name=yourusername&Pword=yourpassword&Cookies=

Now, I've got a couple of questions left. How would I change the syntax of the above request to only give me the Name or Pword? Also what are the values possible for Cookies (since mine is showing up blank eventhough I've got the Save Password box checked)? "0" for don't save & "1" for save?
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 April 2002 :  17:16:38  Show Profile
Try Request.Cookies("Snitz00User")("Name")

Just a guess.

Nikkol
Go to Top of Page

jnkml
Starting Member

10 Posts

Posted - 28 April 2002 :  17:56:54  Show Profile
Good guess. That worked. Thanks.
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 April 2002 :  18:49:37  Show Profile
quote:

Good guess. That worked. Thanks.



ur welcome

Nikkol
Go to Top of Page

Cycas
Starting Member

United Kingdom
14 Posts

Posted - 12 May 2002 :  18:42:01  Show Profile
I want to do the same as jnkml but I'm having trouble.

I pasted <%= Request.Cookies("Snitz00User")("Name")%> into inc_top.asp and got my username - magic.

I have some separate asp pages in a folder (poll) at the same directory level as the forum folder (forum2). I created a page (1login.asp)


<%@LANGUAGE="VBSCRIPT"%>
<html>
<head>
<title>show cookie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>HELLO</p>
<p><%=Request.Cookies("Snitz00User")%></p>
<p>HELLO</p>
<p><%=Request.Cookies("Snitz00User")("Name")%></p>
</body>
</html>


and, using the forum, a forum web link to the page (http://vslondon.org/poll/1login.asp). I checked in Main Forum Configuartion that the cookies are set to Website. After logging in, when I open the page from the forum web link the cookies are not displayed. (All I get is Hello Hello!).

It occurred to me that the path of the web link should be a file path rather than http. I moved 1login.asp to the forum folder and gave the path as "file:///1login.asp". Now the weblink doesn't work (cannot find the file).

I don't know where to go from here. Any ideas?

A little later on...
Well I just managed to put a link into the top navigation bar and the cookies carry. But that's not where I want the link so if anyone can tell me how and where to change the web link I'd be very grateful

Cycas


Edited by - cycas on 12 May 2002 19:12:48
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.49 seconds. Powered By: Snitz Forums 2000 Version 3.4.07