Topic: "Question about This site" (page 1 of 1)

1
Author Post
FirebirdGM
groupmastergroupmaster
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
private message EMail Website
theblacksheep
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
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.
private message EMail Website
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
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
private message EMail Website
FirebirdGM
groupmastergroupmaster
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
private message EMail Website
FirebirdGM
groupmastergroupmaster
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
private message EMail Website
FirebirdGM
groupmastergroupmaster
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 :)
private message EMail Website
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
Hello :-)

looks nice.

bye, Erik
private message EMail Website
daemorhedron
groupmaster
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().
private message
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
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
private message EMail Website

Topic: "Question about This site" (page 1 of 1)

1