Author |
Topic |
nickcoyne
Starting Member
3 Posts |
Posted - 18 April 2001 : 10:02:11
|
I have a forum within a secure site, that users must already login. How/where can I add/change code to allow my existing username credentials to be passed when one enters the main forum page? I obviously don't want people to have to login again once they go to the forum. I have already integrated the user creation process, so when a new user is created for my site, their snitz member details are also inserted.
TIA Nick |
|
Kat
Advanced Member
United Kingdom
3065 Posts |
Posted - 18 April 2001 : 10:33:15
|
Do a search for posts by Kat. There is quite a bit of info about this topic already here.
KatsKorner
|
|
|
nickcoyne
Starting Member
3 Posts |
Posted - 18 April 2001 : 11:01:25
|
If I understand those posts I must replace every instance of a cookie lookup with one that points to session variables that I'm already using. Which cookies are affected (so I can do a proper search for them!), and what kind of info is in them ie loginname, member id, password etc?
Thanks for any help
Nick |
|
|
Kat
Advanced Member
United Kingdom
3065 Posts |
Posted - 18 April 2001 : 11:18:12
|
The cookies you are looking for are:
Request.Cookies(strUniqueID & "User")("Pword"))
Request.Cookies(strUniqueID & "User")("Name"))
It is a bit of a laborious job. They are both the same cookie but you are pulling out password and username(alias) from them individually.
You will also need to have a look at the DoCookies and ClearCookies routines in inc_functions.asp to make sure they aren't affected. I can't remember. It was ages since I did mine.
hths.
KatsKorner
|
|
|
dbianco
Starting Member
7 Posts |
Posted - 18 April 2001 : 11:45:31
|
can you please help me find those old articles . I've done a search but I cant find any old ones just recent posts.
Thank you in advance
D
|
|
|
nickcoyne
Starting Member
3 Posts |
Posted - 18 April 2001 : 12:02:35
|
Looks like a helluva lot of work, thanks though.
Nick
<%=Cannot find reality.sys Universe Terminated%> |
|
|
SportsLeak
Starting Member
6 Posts |
Posted - 21 April 2001 : 01:19:15
|
I am looking to do the same thing but cannot find Request.Cookies(strUniqueID & "User")("Pword") in any of my pages.
Should i change Request.Cookies(strCookieURL & "User")("Name")
|
|
|
barky81
Junior Member
USA
166 Posts |
Posted - 21 April 2001 : 13:49:40
|
What version of Snitz are you running?
quote:
I am looking to do the same thing but cannot find Request.Cookies(strUniqueID & "User")("Pword") in any of my pages.
Should i change Request.Cookies(strCookieURL & "User")("Name")
|
|
|
SportsLeak
Starting Member
6 Posts |
Posted - 21 April 2001 : 22:29:47
|
I think it is version 3.1 but an not sure
|
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 22 April 2001 : 01:17:31
|
Park your mouse over the powered by graphic (or link) at the bottom of the page. The tooltip will tell your version.
====== Doug G ====== |
|
|
RedLeader
New Member
USA
85 Posts |
Posted - 22 April 2001 : 10:21:56
|
Not sure if this will help or not. I was facing the situation. I have a protected area of my site and the usernames and passwords are stored in a SQL Server 7 Database.
What I did was, when a new user was created for my site, I added their username, password and email to the FORUM_MEMBERS. I Also set the cookies to website.
It seems to work fine.
RL
|
|
|
ferdiee
Starting Member
USA
3 Posts |
Posted - 23 April 2001 : 13:11:02
|
RedLeader,
Could you please explain how you changed the cookies setting to website? I'm sorry if this sounds like a stupid question, but i'm new to all these.. still learning Thanks. |
|
|
ferdiee
Starting Member
USA
3 Posts |
Posted - 23 April 2001 : 13:44:43
|
Nevermind.. already found out the answer
|
|
|
Levteck
Starting Member
USA
15 Posts |
Posted - 23 April 2001 : 15:10:16
|
In the single login discussion of the Snitz Forum, Could you explain or tell me where to find info on how you changed the cookies setting to website? Thank you
|
|
|
ferdiee
Starting Member
USA
3 Posts |
Posted - 23 April 2001 : 17:15:10
|
Before I go any further, I think I need to let you know that I'm new at this, and what I'm doing might not be the right thing to do, but it works for me..
Well, I started out reading some articles about cookies.. and you can find that info here: http://www.cookiecentral.com/faq/
In section 3.2, they mentioned something about cookies for the entire site.. and that's what I did.. I changed the cookie to be the cookie of the entire site instead of just the forum.
I went to config.inc and change the strCookieURL value to: strCookieURL = "/" And that does it..
Hope it helps.
Ferdie.
|
|
|
marc
Junior Member
Belgium
175 Posts |
Posted - 23 April 2001 : 18:03:08
|
Hi.
Marc Valentin
|
|
|
Topic |
|