Author |
Topic  |
|
sbiswas
Starting Member
United Kingdom
3 Posts |
Posted - 13 August 2002 : 07:46:16
|
Hello there everyone. As many of you have been mentioning, to integrate the Snitz login system with maybe one that you already have on, it may be best to use inc_login.asp (thanks to whoever that actually made it).
Thing is though, i'm having some problems . What i have done so far is, i have managed to pass the username and password so that it automatically fills up the username and password field boxes in inc-login.asp. Thing is though, how then would i get it to redirect to the main forum page???
I have looked through the code, and it refers to URL=" & Request.ServerVariables("HTTP_REFERER") &"
- is this some kind of a global variable that is holding the previous refering page??? If so, is it just a case of just changing the url to ,for example - /forum/default.asp???
Please help! Thank you |
Sumit |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 13 August 2002 : 08:08:23
|
I don't think the idea behind inc_login is to have the username and password boxes automatically filled in. I think the purpose is to show how you could code your own page to login to the forum, but still filling in the data and clicking the login button.
If you manage to do that once, all subsequent logins will be automatic, since cookies created during the first login will be used to automatically login the user, without the need to fill in the login form again. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
sbiswas
Starting Member
United Kingdom
3 Posts |
Posted - 13 August 2002 : 09:48:44
|
Thanks Ruirib for your advice....sorry to hassle you or any of you others again - i'm not too good with ASP.
My idea at the moment is have a normal text link to the forum - this link will pass a querystring, that will result in the username and password being passed to the Request.QueryString("username") and Request.QueryString("password") on the next page, which will then perform the Chkusr and if validated - will pass them onto the forum. As i'm not too good - does this idea make any sense at all - and is it possible???
Or should i just try and log them onto our database and attempt to log them onto the Snitz one at the same time??? |
Sumit |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 13 August 2002 : 10:38:47
|
I think it's not a good idea to pass that info on the querystring. Why don't you just see how Snitz handles username and password cookie creation and write the cookies once your user is authenticated in your database. That way when the move to the forums pages they'll be automatically logged in... |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
sbiswas
Starting Member
United Kingdom
3 Posts |
Posted - 13 August 2002 : 11:09:35
|
Ruirib, thanks once again for replying!
Anyway, another very silly question for you, am i correct in thinking that the cookies are created in inc_functions? As in the DoCookies Function?
Thanks once again!
quote: Originally posted by ruirib
I think it's not a good idea to pass that info on the querystring. Why don't you just see how Snitz handles username and password cookie creation and write the cookies once your user is authenticated in your database. That way when the move to the forums pages they'll be automatically logged in...
|
Sumit |
Edited by - sbiswas on 13 August 2002 11:09:59 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
|
Topic  |
|