Author |
Topic |
|
wcameron
New Member
55 Posts |
Posted - 17 April 2001 : 11:37:29
|
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
|
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 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 17 April 2001 : 12:59:14
|
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
|
|
|
wcameron
New Member
55 Posts |
Posted - 17 April 2001 : 16:25:41
|
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.
|
|
|
concep86
Junior Member
USA
140 Posts |
Posted - 18 April 2001 : 22:09:33
|
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
|
|
|
wcameron
New Member
55 Posts |
Posted - 21 April 2001 : 17:17:59
|
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
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 22 April 2001 : 05:12:04
|
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.
|
|
|
MorningZ
Junior Member
USA
169 Posts |
Posted - 24 April 2001 : 21:57:38
|
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 %>
|
|
|
|
Topic |
|