classic-problems

What is the best solution for the 'Students and Lockers' problem?

I thought that it would be fun to present some classic CS problems and let people show their algorithm optimization skills. The hope is that we get to see some clever techniques to solve abstract problems that we may be able to implement in practice. Ideally solutions would be presented in pseudo code with a big O classification. Proof ...

Do you always REDIRECT after POST? If yes, How do you manage it?

Say, you are submitting a form, which affects your database (adding records/ deleting them/ updating them) and this is how your request looks like: POST /application/action=update Now, say, you are done with your update, so you would like to take the user to the home page. Response.sendRedirect /application/action=home This works w...

asp classic setting session in session_onstart

I have the following excerpt from my global.asa that should set the session timeout to 900 minutes: Sub Session_OnStart Session.Timeout=900 End Sub The sessions, I suspect based on user responses, aren't lasting 900 minutes. It would make more sense if the values are in seconds. Is there an IIS (Windows 2000 server) setting I can...