Chapter 13 - Sending authorization query to webpage?
by Gary Luetchford · in Torque Game Engine · 12/21/2005 (9:19 am) · 1 replies
Hi,
I have been working through chapter 13 with mixed success.
The first part worked fine but the second, authorization, part I found bits missing.
I basically understood the authorization process from the book as:
Game sends username / password to webpage, webpage checks with the database for valid username and password. if is valid then writes 'Verified' or something similar on the page which is then processed by the game and the user is authenticated.
I have created an ASP page which does this authentication and i have a sql database to check against. i have tested this part out and works fine, however i cant figure out how the game sends the username and password to the webpage.
In the book the last line of the function checkclientlogin reads:
%udp.get(%server, %script, %query)
Does 'get' mean the query is sent like a form POST or GET or sent as a QueryString or as a Cookie? It doesnt say in the book but it hints at all these methods.
Does anyone have any ideas or suggestions?
Thanks!
I have been working through chapter 13 with mixed success.
The first part worked fine but the second, authorization, part I found bits missing.
I basically understood the authorization process from the book as:
Game sends username / password to webpage, webpage checks with the database for valid username and password. if is valid then writes 'Verified' or something similar on the page which is then processed by the game and the user is authenticated.
I have created an ASP page which does this authentication and i have a sql database to check against. i have tested this part out and works fine, however i cant figure out how the game sends the username and password to the webpage.
In the book the last line of the function checkclientlogin reads:
%udp.get(%server, %script, %query)
Does 'get' mean the query is sent like a form POST or GET or sent as a QueryString or as a Cookie? It doesnt say in the book but it hints at all these methods.
Does anyone have any ideas or suggestions?
Thanks!
Torque Owner Josh "GimpMaster" Hintze