[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • 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?

Thanks,
pT
0
pteranodon72
Asked:
pteranodon72
  • 2
1 Solution
 
b0lsc0ttCommented:
pteranodon72,

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.

b0lsc0tt
0
 
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!

pT
0
 
b0lsc0ttCommented:
>> 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.
bol
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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