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)
 using inc_login.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sbiswas
Starting Member

United Kingdom
3 Posts

Posted - 13 August 2002 :  07:46:16  Show Profile  Visit sbiswas's Homepage
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  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

sbiswas
Starting Member

United Kingdom
3 Posts

Posted - 13 August 2002 :  09:48:44  Show Profile  Visit sbiswas's Homepage
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 August 2002 :  10:38:47  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

sbiswas
Starting Member

United Kingdom
3 Posts

Posted - 13 August 2002 :  11:09:35  Show Profile  Visit sbiswas's Homepage
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 August 2002 :  11:13:27  Show Profile  Send ruirib a Yahoo! Message
Yeah, you're right, that's where they are created.

And you're welcome too .


Snitz 3.4 Readme | Like the support? Support Snitz too
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 1.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07