Output Sessions

Another piece of ASP code I use quite often at work...

<% on error resume next dim i for each i in session.contents response.write( i & " = " & session(i) & "
")
next
%>

Just testing a plugin…

I found this great plugin Code Markup that allows for easy posting of code examples. So here's an example of ASP code to show a different greeting depending on the time of day.

<% Dim dHour dHour = Hour(Now) If dHour < 12 Then Response.Write "Good morning" ElseIf dHour < 17 Then Response.Write "Good afternoon" Else Response.Write "Good evening" End If %>