Methods for maintaining session info between asp pages in IE with medium privacy

Posted on 2008-11-12
Last Modified: 2012-05-05
I'm developing a classic ASP application that does authentication through a database lookup of usernames and passwords.  Page1.asp has a form that uses the post method to auth.asp, which checks the database. If a user/password match is made, I set Session("LoggedIn") = True. Each subsequent page checks the value of the Session("LoggedIn") and redirects if it is not set.

This works swimmingly in Firefox and Safari in their default configurations, but IE6 requires me to change Privacy to Low to maintain Session variables between page navigations.

I need to make this work in IE6 with Privacy set to Medium.  What are my options? Other posts have suggested adding querystrings to my page-to-page hyperlinks, but that seems quite insecure. Is there some way to hold on to the Form values from the first log in form when the user is three or four pages along?  I could write them into the hidden form inputs, but they would be viewable in the page source.  Any suggestions?

Question by:pteranodon72
    LVL 54

    Accepted Solution


    IE6 with Medium privacy can still work with ASP session variables.  It seems like something else is going on.  What if you use ASP classic to make a cookie (same domain)?  Can it create and then later read the cookie?

    What is the authentication process like?  What type of authentication specifically?  Is any of this done on a secure page and then are you trying to use info on an insecure page?  What about subdomains or third parties?  I am not exactly sure what the setting or issue is but hopefully this can help to narrow it down.  I do know for sure though a medium privacy setting in IE6 will not prevent session variables from working.

    Let me know if you have any questions or need more information.

    LVL 14

    Author Comment

    Thanks for the encouragement.  I found errors in my asp code that behaved differently in different browsers.  My Session variables are indeed accessible across page navigations in the domain, as long as I'm not so sloppy with my coding.

    Thanks for setting me straight!

    LVL 54

    Expert Comment

    >> as I'm not so sloppy with my coding <<
    LOL.  That is the bane of programmers and developers. ;)  Why won't it just work as we MEANT to do it. :D
    I'm glad you found the issue and I could help with this.  Thanks for the grade, the points and the fun question.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now