Author | Post | |||
FirebirdGM |
Hey I am working on making my own hacking challenge site called Memory X, and was wondering a few things about how TBS Does things. 1. How do you do User Authentication? I'm guessing Cookies, as I do not see any Sessions.. 2. How do you check if a user is done a challenge or not? Do you have a database and a seperate table for each, and when the user completes it, their name is added? Or do you have it so when you register your row has a field for every challenge, if it is set to 1 or yes then it is completed? Thanks Firebird |
|||
29.06.2003 02:43:58 |
|
|||
theblacksheep |
ok for two: we have a database. if you register you will get added and every challenge that exist is set to 0. if you solve a challenge it is changed to 1. |
|||
29.06.2003 07:17:42 |
|
|||
Erik |
Hello for authentication, we do use sessions. But in general the session-ids are passed through a cookie. But I would advise you to make your own session-system using cookies and maybe a small database. Because the usual PHP-sessions are not easily to force to behave in the manner you want. As an example, we can not set the cookie-expiration-date to a time of, let us say, 2 month or so. So in general, you have to log in every time you visit our site... bye, Erik |
|||
29.06.2003 08:48:54 |
|
|||
FirebirdGM |
Okay What I did is wrote an administration script that automatically creates everything I need, then I just open the file and add the challenge Thanks for the info |
|||
29.06.2003 09:14:33 |
|
|||
FirebirdGM |
Yay, getting there. I Got the user registration completed, as well at the login. Got a script to automaticcally add challenges. Working on the way to add points/challenge count when you complete it now, then Just need to make a bunch of challenges Thanks for the help, FB |
|||
30.06.2003 00:14:28 |
|
|||
FirebirdGM |
Yay, Got a working version up. http://MemoryX.no-ip.com if you want to check it out, I added a link to Tbs on there |
|||
02.07.2003 05:03:43 |
|
|||
Erik |
Hello looks nice. bye, Erik |
|||
02.07.2003 05:15:04 |
|
|||
daemorhedron |
No offence, but I don't know how many times I've told you guys about how to handle the session cookie expiry date. It's one function, and well documented...here it is again, only because the login thing drives me absolutely bonkers : session_set_cookie_params(). |
|||
02.07.2003 09:26:56 |
|
|||
Erik |
Hello I tried this very often. And it didn't work. I also tried to use set_cookie() directly. But even this won't help. bye, Erik |
|||
02.07.2003 09:38:34 |
|