Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

memco

macrumors 6502
Original poster
May 1, 2008
261
21
I have an asp page that I am working on in which the menu has some links that are only visible to certain users (currently based on a session variable). I'm curious though how to improve the loading time as it seems a bit slow. One solution I thought might come from structuring my navigation differently. Currently, I have something like this:

Code:
<li>item</li>
<%
     if (Session("Variable ") <> "") then
%>
<!-- Logged in users only -->
<li>item</li>
<% end if %>

That happens about 8-10 times as the different sections of the menu each have items appearing for different sets of users. Is this where my lag is coming from, and is there a better method handling such a problem?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.