Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to call function login without login form?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to call function login without login form?

 Post Reply Post Reply
Author
vitinhgocong View Drop Down
Newbie
Newbie


Joined: 07 May 2009
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote vitinhgocong Quote  Post ReplyReply Direct Link To This Post Topic: How to call function login without login form?
    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!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
vitinhgocong View Drop Down
Newbie
Newbie


Joined: 07 May 2009
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote vitinhgocong Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.