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

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?

LVL 14
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT ManagerCommented:

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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pteranodon72Author Commented:
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!

b0lsc0ttIT ManagerCommented:
>> 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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.