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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Using Snitz Cookies Elsewhere in Web Site
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wcameron
New Member

55 Posts

Posted - 17 April 2001 :  11:37:29  Show Profile  Visit wcameron's Homepage
I love the way the Snitz cookies keep track of username and password. I have another section of my site www.MountainNature.com which uses registration as well. Since it is on the same domain as the Snitz cookies, could these cookies be used in other sections of the web site to retain registration state. Currently, I'm having to pass username and password along in links because I am not comfortable writing ASP code.

Ward

big9erfan
Average Member

540 Posts

Posted - 17 April 2001 :  11:47:13  Show Profile
You could use Session Variables for their names, and on closing a window could clear the session variables.

Just a thought



http://www.ugfl.net/forums
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 17 April 2001 :  12:59:14  Show Profile  Visit HuwR's Homepage
quote:

I love the way the Snitz cookies keep track of username and password. I have another section of my site www.MountainNature.com which uses registration as well. Since it is on the same domain as the Snitz cookies, could these cookies be used in other sections of the web site to retain registration state. Currently, I'm having to pass username and password along in links because I am not comfortable writing ASP code.

Ward





Yes

Go to Top of Page

wcameron
New Member

55 Posts

Posted - 17 April 2001 :  16:25:41  Show Profile  Visit wcameron's Homepage
Just to add to my previous question. Could I place the asp code that has the "You are logged on as ..." and Login/out button onto the top of the pages for my other database? This would (I assume) check the cookie for the username and password variables.

In this database www.mountainnature.com/sightings, it uses the username and password to select only the records related to the current user.

I also like the persistent nature of the Snitz cookie, since it would allow the site user to avoid logging on every time they come to the sightings section.

Go to Top of Page

concep86
Junior Member

USA
140 Posts

Posted - 18 April 2001 :  22:09:33  Show Profile  Visit concep86's Homepage
As difficult as it may be believe. I have asked this question several times on the forum and noone seems to want to pick it up...

I am starting to beleive that it is just me...

Just kidding, the folks here are very supportive and helpful.

I am sure once someone gets around to it, they will help with this..

I too have a site that incorporates tehh forum into it and would love to have the user register and login using the snitz login/cookie features...

I will keep this topic bookmarked to see how it progresses...

In the meantime I will keep trying to work the cookie code myself. Whew, that will take some time.

Concep86
Webmaster
http://www.coneciones.com
Go to Top of Page

wcameron
New Member

55 Posts

Posted - 21 April 2001 :  17:17:59  Show Profile  Visit wcameron's Homepage
Please keep me posted if you do figure a way to do it. I hate having two duplicate registration databases, especially when the snitz method works so much more elegantly than the one I have designed.

Thanks

ward

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 22 April 2001 :  05:12:04  Show Profile  Visit Gremlin's Homepage
It's not too hard to do what you guys want.

I'd suggest ya have a close look at the code near the top of inc_top.asp that handles the logons. Then have a look at the DoCookies (without cheking i think thats what its called) routine in inc_functions.asp

Then pull out your ASP manuals and read up on request.cookies / response.cookies and Session variables.

Armed with that knowledge you should be able to work out your own solution to suit your own needs.

Cheers.

Go to Top of Page

MorningZ
Junior Member

USA
169 Posts

Posted - 24 April 2001 :  21:57:38  Show Profile  Visit MorningZ's Homepage  Send MorningZ an AOL message
go into config.asp, see ( or set to what you want ) what "strUniqueID" is

and then simply use:

Logged in as: <%= Request.Cookies( strUniqueID & "user")("Name") %>



Here's also some code to "dump" whats in the cookies:

<%
For Each item in Request.Cookies
Response.Write "Item=" & item & ", Value=" & Request.Cookies(item) & "<br>"
Next
%>



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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07