• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

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?

  • 2
1 Solution
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.

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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now