I have a 2 versions of a file .
In the first one

step 1:i check the session for values ,to verify if the user has
already logged in ,other wise i will redirect him to the login page.

step 2:After these lines of code i have couple of include and page
directives to use certain javabean.

In the second version i do step2 first then step1

what would be the difference in the 2 approaches