Print Page | Close Window

How to call function login without login form?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28950
Printed Date: 28 March 2026 at 7:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to call function login without login form?
Posted By: vitinhgocong
Subject: How to call function login without login form?
Date Posted: 10 November 2010 at 7:02am
I have a asp page, i want in this page, i insert code username and password when this page load it's will auto call function login without login form.

I run code:
Call loginUser(strUsername, strPassword, True, "user")
but it's not run
Help me now!

Thanks!



Replies:
Posted By: WebWiz-Bruce
Date Posted: 10 November 2010 at 12:13pm
Are you including the file functions/functions_login.asp in this page?

Also the function although does create user session and cookies simply returns a number, the key for which is below:-

'Key to login response
'0 = Login Failed
'1 = Login OK
'2 = CAPTCHA Code OK
'3 = CAPTCHA Code Incorrect
'4 = CAPTHCA required

So for example if the function returns 0 then it means the login has failed due to incorrect username or password, 1 means login is successful and the others mean issues with the CAPTCHA code entered.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: vitinhgocong
Date Posted: 10 November 2010 at 12:41pm
I coding to login forum by Facebook account but i can not write wwf9sLID cookie with Function in functions_login.asp

1) I had 1 username reply from Facebook => "fb_username"
2) I had 1 password reply from Facebook  => "fb_password"

How i do with them?

P/S: this page must create
cookie without submit form

Please help me!
Thanks


Posted By: WebWiz-Bruce
Date Posted: 10 November 2010 at 4:29pm
The login function will only create a forum session for the user and the cookie, it can not create a new user, the user needs to already exist within the forums database.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net