Your Turn, Part Two

Discussion of challenges you have already solved
Post Reply
AMindForeverVoyaging
Forum Admin
Posts: 496
Joined: Sat May 28, 2011 9:14 am
Location: Germany

Your Turn, Part Two

Post by AMindForeverVoyaging »

So do I understand this correctly: Writing to a file and storing the previous requests there is okay, but using an approach with a Session ID is not? I mean, with a real webserver you certainly would not store everything on hard disk, but use the main memory of course...
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

on a real application you would store the data in a database, so it would be on the disk maybe with some parts kept in memory but they can be very large. Even if you were to store everything in cookies or a session variable you would still have to get these variables from somewhere, i.e. a database so databases are taken for granted with web development
Tabun
Posts: 17
Joined: Wed Feb 05, 2014 12:21 pm

Post by Tabun »

Fun fact: I 'solved' this one by randomly replying yes/no (after I found out it was a single static test), and I got it on the second try. Heh.

Could've easily done it with a text file 'memory' of course, but meh.

Would've been more fun if there would've been some trick to it, like spaces added, or a 'garbage variable name' check, that kind of thing.
Post Reply